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

Fix type of "definitions" attribute #70

Merged
merged 1 commit into from
Dec 11, 2024
Merged

Conversation

mwoehlke
Copy link
Member

@mwoehlke mwoehlke commented Aug 7, 2024

Adjust the specified type of the "definitions" attribute to reflect that null values are allowed (as specified in the prose). Improve type parsing to be more robust about how union types are split. Add support for 'nullable' types.

Currently, we don't really support prose generation for compound types where the inner value is a union type. (Schema generation doesn't have this limitation and can handle these just fine.) The 'nullable' type is a bit of a hack for this specific instance, but for now it's good enough for the types that actually exist in the schema.

Adjust the specified type of the "definitions" attribute to reflect that
null values are allowed (as specified in the prose). Improve type
parsing to be more robust about how union types are split. Add support
for 'nullable' types.

Currently, we don't really support prose generation for compound types
where the inner value is a union type. (Schema generation doesn't have
this limitation and can handle these just fine.) The 'nullable' type is
a bit of a hack for this specific instance, but for now it's good enough
for the types that actually exist in the schema.
@mwoehlke mwoehlke mentioned this pull request Aug 7, 2024
@mwoehlke mwoehlke merged commit 8fcd328 into master Dec 11, 2024
3 checks passed
@mwoehlke mwoehlke deleted the fix-definitions-schema branch December 11, 2024 19:34
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.

1 participant