这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@danielgtaylor
Copy link
Owner

Adds support to the schema and validation for oneOf, anyOf, allOf, and not schemas. An example is included how these combined with a raw body can be used to create an operation with multiple input types.

Lays the groundwork to fix #128, though I want to revisit validation error messages and see how struct field tags could make use of these new features (particularly one-of support).

@nickajacks1
Copy link
Contributor

I agree, this lays the groundwork for future additions, and it takes care of my use case beautifully. Thanks!

@danielgtaylor danielgtaylor added the enhancement New feature or request label Sep 22, 2023
@danielgtaylor danielgtaylor merged commit c81c4ba into main Sep 22, 2023
@danielgtaylor danielgtaylor deleted the any-all-one-of branch September 22, 2023 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Schema: anyOf, allOf, oneOf, not

3 participants