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

Implement rudimentary --fill-defaults flag #215

Merged
merged 1 commit into from
Jan 2, 2023
Merged

Implement rudimentary --fill-defaults flag #215

merged 1 commit into from
Jan 2, 2023

Conversation

sirosen
Copy link
Member

@sirosen sirosen commented Jan 2, 2023

Docs list this among the various flags, three acceptance tests exercise the range of expected/desired functionality, and the changelog lists the new feature.

No explicit handling is added for polymophic schemas, incorrect "default" values, or other corner cases, but the docs include a warning that "default" can be ambiguous or even ill-defined.

Although the behavior, inherited from jsonschema, is deterministic for how "default" under a polymorphic schema is handled, it is documented explicitly as undefined.

resolves #200

Docs list this among the various flags, three acceptance tests
exercise the range of expected/desired functionality, and the
changelog lists the new feature.

No explicit handling is added for polymophic schemas, incorrect
`"default"` values, or other corner cases, but the docs include a
warning that `"default"` can be ambiguous or even ill-defined.

Although the behavior, inherited from `jsonschema`, is deterministic
for how `"default"` under a polymorphic schema is handled, it is
documented explicitly as undefined.
@sirosen sirosen merged commit e45abd3 into main Jan 2, 2023
@sirosen sirosen deleted the fill-defaults branch January 2, 2023 23:19
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.

pre-populate default values from schema (command-line option)
1 participant