Describe a field type options


#1

When describing a type, sometimes one of its fields is a reference to a resource (for example, invoices and clients).
How can you do to describe in raml that the clients field must be chosen between one of the values of a certain url, or better of a certain resource?

types:
  Invoice:
    type: object
    properties:
      client:
        required: true
        type: string
        **_options: http://...../api/clients/_**
        **options: /clients:**

#2

Hi @eldrum,

To best of my understanding of your question enum facet is what do you need, so it should be something like:

enum: ["/clients", "http://...../api/clients/"]

Regards,
Pavel