In a RAML specification, which attribute marks a query parameter as optional for a resource?

Study for the MuleSoft Associate / Development Fundamental Test. Master key concepts with flashcards and multiple choice questions, complete with hints and explanations. Prepare thoroughly for your exam!

Multiple Choice

In a RAML specification, which attribute marks a query parameter as optional for a resource?

Explanation:
RAML uses a boolean flag named required on each query parameter to indicate whether it must be supplied. If required is true, the parameter is mandatory; if required is false, it is optional. So marking a query parameter as optional is done by setting required: false. The other options don’t fit because RAML doesn’t use an optional property, and setting required: true would make it mandatory, not optional.

RAML uses a boolean flag named required on each query parameter to indicate whether it must be supplied. If required is true, the parameter is mandatory; if required is false, it is optional. So marking a query parameter as optional is done by setting required: false. The other options don’t fit because RAML doesn’t use an optional property, and setting required: true would make it mandatory, not optional.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy