I have no idea how to fix this validation error:
“Additional response headers found in schema:”
Would be grateful for any assistance!
Screenshot of the problem
Screenshot of response header after successful request:
schema:
"/api/auth": {
"post": {
"description": "Authenticates a user. On successful authentication, the response returns a Bearer token.",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"username": {"type":"string", "minLength": 1},
"password": {"type":"string", "minLength": 1}
},
"example": {
"username": "testuser1",
"password": "password",
}
}
}
}
},
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "array",
"properties": {
"token": {"type":"string"}
}
}
}
}
},
"401": {
"description": "Unauthorized",
"content": {
"application/json": {
"schema": {"$ref": "#/components/schemas/Error"},
"example": {
"code": "UnauthorizedError",
"message": "Provided user admin1 was invalid"
}
}
}
},
"default": {
"description": "Unexpected error",
"content": {
"application/json": {
"schema": {"$ref": "#/components/schemas/Error"}
}
}
}
}
}}