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

Is there any support for oneOf, anyOf etc... If so how would we do it #39

Closed
AdamJSoftware opened this issue Aug 5, 2022 · 1 comment

Comments

@AdamJSoftware
Copy link

AdamJSoftware commented Aug 5, 2022

Is there any support for oneOf, anyOf etc... If so how would we do it. I feel like one or two examples would help clarify this.

Overall, great project!

@vearutop
Copy link
Member

vearutop commented Aug 6, 2022

Thank you for nice feedback!

You can define *Of constraints by either implementing an *Exposer interface of using helper function with value samples. See more details at https://github.com/swaggest/jsonschema-go#implementing-interfaces-on-a-type.

@vearutop vearutop closed this as completed Aug 8, 2022
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

2 participants