Skip to main content



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

The Parameter Object must specify a location for the parameter using the in property. The location identifies where the parameter needs to be sent in the request and must not be null or empty. Possible values are 'query', 'header', 'path', 'formData' or 'body'. If parameter location is not set, query will be assumed by default automatically during import/transformations in APIMatic.

Maximum SeverityError
MessageRequired in property in Parameter Object is missing.
Rule SystemSemantic
Broad CategoryParameters
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagsswagger2 swagger standards semantic validation location parameter

Suggested Fixes

  • Add missing in property in the Parameter object.
  • Make sure that the in property is not null or empty.
  • Make sure that the value of the in property is one of the following values: 'query', 'header', 'path', 'formData' or 'body'. The values are case-sensitive.

For More Information