Skip to main content



This rule belongs to the swagger-v2-standards-validation ruleset and states that:

If the Parameter Object location is set to path it must specify the property required with value set to true.

Maximum SeverityError
MessageMissing required property required in the path Parameter Object.
Rule SystemSemantic
Broad CategoryParameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation required path parameter

Suggested Fixes

  • Add missing required property in the path Parameter object.
  • required is a boolean property with true or false as possible values. For path parameters, it must be set to true only.
  • If the parameter is not expected to be sent in the path i.e. it is not a template parameter, change the location from path to the desired location e.g. query, header, formData or body.
  • If the parameter is not expected to be sent in the path, remove the path parameter entry from the parameters list.

For More Information