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

Add support for ~validate in OpenAPI3 Importer #1050

Open
cuminandpaprika opened this issue Oct 15, 2020 · 1 comment
Open

Add support for ~validate in OpenAPI3 Importer #1050

cuminandpaprika opened this issue Oct 15, 2020 · 1 comment

Comments

@cuminandpaprika
Copy link
Contributor

Please do not post any internal, closed source snippets on this public issue tracker!

Initial request

sysl-go codegen recognises the ~validate attribute on custom datatypes, to generate a validating JSON unmarhsaller.
Is it possible to have the openapi3 sysl importer add this attribute to the schema?

Purpose

Add support for type validation fields in importer so that the generated code can validate these fields

Suggested approaches

What have you tried, and how might this problem be solved?

@andrewemeryanz
Copy link
Contributor

I really think this is out of scope for the importer. I've created a separate ticket on Sysl-go to track an alternative approach:
https://github.com/anzx/sysl-go/issues/163

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

No branches or pull requests

2 participants