-
Notifications
You must be signed in to change notification settings - Fork 481
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
nullable members weird rendering behaviour #313
Comments
Please sort this out. It's so infuriating that all optional members in the schema get instantiated as |
Here's the source of this behavior https://github.com/danielgtaylor/aglio/blob/olio-theme/src/example.coffee#L17 |
Looks like you can disable it by setting |
|
@optimuspaul looks like #177 and #304 my be relevant. PR is sitting idle. |
I have the following data structures defined
And the use case for this data is the following
This renders to the following JSON
I was expecting code, latitude and longitude to have the value null, as a sample value was not specified for them.
However, when I change the CountryStruct to be empty. eg.
The following is rendered.
Fairly strange behaviour. The functionality I'm looking for is to have the value null be rendered when no sample value is given to an objects member.
The text was updated successfully, but these errors were encountered: