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

Added DefaultInstance to IJsonValue<T> #245

Conversation

mwadams
Copy link
Contributor

@mwadams mwadams commented Sep 14, 2023

Exposed default values on a type through a static DefaultInstance property.

Used the DefaultInstance property in the implementation of JsonObject TryGetDefault() for properties.

Cleaned up the Const code generation so it uses T.ParseValue() from Utf8 string literals.

@mwadams mwadams linked an issue Sep 14, 2023 that may be closed by this pull request
@mwadams mwadams merged commit d797dc5 into main Sep 14, 2023
8 checks passed
@mwadams mwadams deleted the feature/243-default-values-are-not-generated-for-root-schemasentities branch September 14, 2023 13:40
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

Successfully merging this pull request may close these issues.

Default values are not generated for "root" schemas/entities
1 participant