If someone has a wrong indentation for the requestBody content property the validation will panic while accessing this content field.
paths:
/your-path:
post:
requestBody:
description: A JSON object containing...
required: true
content:
application/json:
schema:
type: object
properties:
id:
nullable: true
type: integer
Leads to panic at:
|
content := requestBody.Content |
If someone has a wrong indentation for the
requestBodycontentproperty the validation will panic while accessing this content field.Leads to panic at:
kin-openapi/openapi3filter/validate_request.go
Line 242 in 46e0df8