OpenAPI Validation Help

Back to Community
Parameter 'in' field must be one of ['query', 'header', 'path', 'cookie'].

Context: Path: /geographicLocation, Method: POST, Parameter: geographicLocation

Question: Parameter 'in' field must be one of ['query', 'header', 'path', 'cookie']. why it is not considering the "body" inside "in" parameter ?

Code:
{"description":"The OSSGeographicLocation or OSSPhysicalStructure to be created","in":"body","name":"geographicLocation","required":true,"schema":{"$ref":"#/definitions/OSSGeographicLocation_Create"}}
Asked by Developer_68cc6c on 2025-10-07 14:49 Open
💡 Help with this question

Answers (1)

"in" syntax is from version 2.x not 3.x

admin • 2025-10-10 05:01