You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
oneOf constraint failed for SchemaOrRef with 0 valid results: map[Schema:oneOf constraint failed for SchemaOrRef with 0 valid results: map[Schema:additional properties not allowed in Schema: [$ref] SchemaReference:additional properties not allowed in SchemaReference: [nullable]] SchemaReference:required key missing: $ref]
If you open it in a schema-enabled editor, like the one included in intellij IDEs (e.g. GoLand), you'll see warnings.
The issue here is that OpenAPI 3.0 is based on JSON Schema draft 04, which does not allow any fields adjacent to $ref.
This is also what is told by unmarshal error message (in a cryptic way though):
additional properties not allowed in SchemaReference: [nullable]]
Describe the bug
Unmarshal yaml failed for https://github.com/openai/openai-openapi/blob/master/openapi.yaml
Error:
To Reproduce
Expected behavior
This file should be parsed correctly. This file renders correctly in swagger editor.
https://editor-next.swagger.io/

Additional context
None
The text was updated successfully, but these errors were encountered: