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 the api schema generator tool to the monorepo #59

Open
JohnasBroda opened this issue Feb 3, 2023 · 0 comments
Open

Add the api schema generator tool to the monorepo #59

JohnasBroda opened this issue Feb 3, 2023 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation feature Package workspace

Comments

@JohnasBroda
Copy link
Contributor

As part of the company's internal project: Adroly's developement we've started working on a tool that can automate the api schema valiation.

It uses zod and ts-to-zod packages to parse through a folder containing models generated from an openapi schema.json file. For each file and model it finds, it builds a zod schema that can validate the shape of that used in that model.

The tool could be used to validate both request and response schemas.

Later on we could incorporate this tool into a more robust CLI that uses ng-openapi-gen with our tool in the background as well as another tool that could generate @ngrx/entity stores for the various api client services. This Cli tool would require a set of configurations as inputs to be present in the project's folder. And would output a ready made set of features that can be used in the components of the consuming application project.

This should be a new package published to npm.

@JohnasBroda JohnasBroda added documentation Improvements or additions to documentation feature workspace Package labels Feb 3, 2023
@JohnasBroda JohnasBroda self-assigned this Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation feature Package workspace
Projects
None yet
Development

No branches or pull requests

1 participant