Ravindar, Integrations with Mulesoft & BizTalk

Just another Integration blog

Using enum in raml

This is for my notes. There are 2 ways to specify enum in raml


/MyResource:
  get:
    queryParameters:
      destination:
        required: true
        enum: 
          - SFO
          - LAX
          - CLE

alternativey we can specify enum as below


/MyResource:
  get:
    queryParameters:
      destination:
        required: true
        enum: [SFO, LAX, CLE]

September 15, 2019 Posted by | Mule 3, Mulesoft | Leave a comment