Skip to main content



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

If the location is set as path, the parameter must be set as required using the property required of the Parameter Object. The value of this property must be set to true. If a path parameter is marked as optional, it will automatically be marked as required during import/transformations in APIMatic.

Maximum SeverityError
MessagePath parameter is marked as optional.
Rule SystemSemantic
Broad CategoryParameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation path parameter required

Suggested Fixes

  • Ensure that the boolean property required exists in the path Parameter Object.
  • Ensure that the property required has a value set to true.

For More Information