Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Are Schema's anyOf/allOf/oneOf incorrectly typed? #109

Open
c-wygoda opened this issue Jan 24, 2024 · 0 comments
Open

Are Schema's anyOf/allOf/oneOf incorrectly typed? #109

c-wygoda opened this issue Jan 24, 2024 · 0 comments

Comments

@c-wygoda
Copy link

These must be arrays according to the spec https://json-schema.org/draft/2020-12/json-schema-core#section-10.2.1.3, but aren't?

fizz/openapi/spec.go

Lines 156 to 158 in fe54d35

AllOf *SchemaOrRef `json:"allOf,omitempty" yaml:"allOf,omitempty"`
OneOf *SchemaOrRef `json:"oneOf,omitempty" yaml:"oneOf,omitempty"`
AnyOf *SchemaOrRef `json:"anyOf,omitempty" yaml:"anyOf,omitempty"`

I'm trying to inline the GeoJSON spec from an JSON file, but unmarshalling fails due to this.

Would be interested to hear about the reasons if this is deliberate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant