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

[Feature] Swagger / OpenAPI support #142

Closed
Jolanrensen opened this issue Aug 8, 2022 · 3 comments
Closed

[Feature] Swagger / OpenAPI support #142

Jolanrensen opened this issue Aug 8, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Jolanrensen
Copy link
Collaborator

While the auto inferring of types is cool, it makes mistakes. This is logical since there are some things it just cannot know. For instance in json: What's the type of an empty list? What to do with undefined properties?

OpenApi Swagger could solve this. It exists for many APIs and essentially describes the structure of the JSON that will be expected. Generating Dataschemas from those should be a breeze.

@Jolanrensen
Copy link
Collaborator Author

Jolanrensen commented Aug 8, 2022

@Jolanrensen
Copy link
Collaborator Author

https://openapi-generator.tech/docs/generators/kotlin might actually be cool if this could be extended with dataframes as optional output type option. I'll try and see if I can create a template to generate DataSchema's

@Jolanrensen
Copy link
Collaborator Author

might be easier to use our own json data inference, using openapi for help. A generator might be too advanced, just a library that can understand openapi might already suffice, checkout https://openapi.tools/, otherwise just do it ourselves.

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

No branches or pull requests

1 participant