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

Clever ways to actually scan the entire code base and integrate into build? #365

Open
mikevercoelen opened this issue Jan 16, 2025 · 2 comments

Comments

@mikevercoelen
Copy link

This is a super cool library and I'm very excited to work with it.

I'm struggling to understand or find a clever way on how to integrate this into my repo structurally.

Ideally I run either a cli command i.e. schemars generate -o ./schemas/my-schema.json

Does this exist? How are people actually integrating this library?

Docs about this part would be great, happy to contribute if needed!

@yassun7010
Copy link

I use the basic usage described in the README.

There is currently no way to scan the entire code and generate all the JSON Schema files.

In fact, it is not possible to automatically collect them because there are no attributes defined that indicate which structure is the root of the JsonSchema.

@mikevercoelen
Copy link
Author

Got it, thank you! And thank your for the quick reply.

Super cool library, very useful regardless!

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