We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c57d8e commit b4a7430Copy full SHA for b4a7430
openapi3/reflect.go
@@ -225,7 +225,7 @@ func (r *Reflector) parseResponseHeader(output interface{}) (map[string]HeaderOr
225
res := make(map[string]HeaderOrRef)
226
227
_, err := r.Reflect(output,
228
- jsonschema.DefinitionsPrefix("#/components/schemas/"),
+ jsonschema.DefinitionsPrefix("#/components/schemas/header"),
229
jsonschema.CollectDefinitions(r.collectDefinition),
230
jsonschema.PropertyNameTag("header"),
231
jsonschema.InterceptProperty(func(name string, field reflect.StructField, propertySchema *jsonschema.Schema) error {
0 commit comments