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 JsonSchema.Net.Generation Attributes to HeadlessConfig and AppConfig #8

Open
ProbablePrime opened this issue Nov 25, 2024 · 2 comments

Comments

@ProbablePrime
Copy link
Member

No description provided.

@ProbablePrime
Copy link
Member Author

JsonSchema.Net.Generation

@ProbablePrime
Copy link
Member Author

ProbablePrime commented Nov 25, 2024

Ok now i'm done juggling I can elaborate on my prior Comment.

  1. Install JsonSchema.Net.Generation on FrooxEngine Projects
  2. Follow: https://docs.json-everything.net/schema/schemagen/schema-generation/#schema-schemagen-best-practices to add additional properties where required.

The "where required" is a little tricky because there is some overlap with DataAnnotations that exist in the ComponentModel space which FrooxEngine already has afaik.

https://docs.json-everything.net/schema/schemagen/data-annotations/ describes the support for those annotations but does recommend using JsonSchema.Net's.

Of note JsonRequired from System.Text.Json is also sometimes used over in FrooxEngine and it is supported in JsonSchema.net generation too.

For Anyone randomly reading I hope you're enjoying my randomly verbose comments. 🧀

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

1 participant