Skip to main content

I noticed that in the latest version of anypoint.platform, we need to create RAML file by going to "API specification" option in Design center. While giving the resources, and while entering queryParameter with one of the field, It got tagged as Required field.

 

How can I make a field passed in queryParameter as not "required field"?

2 answers
  1. Oct 9, 2017, 8:25 PM

    Hi, @kprajeesh.

     

    You should simply add the attribute required as false.

    For instance:

     

    queryParameters:

    number:

    description: Specify the desired number

    type: integer

    required: false

     

    Check the RAML spec for more info about this topic.

     

    Regards.

0/9000