8000 [MECHNET] Support nullable properties · Issue #169 · robotoworks/mechanoid · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[MECHNET] Support nullable properties #169

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

Open
fluxtah opened this issue Jul 2, 2013 · 0 comments
Open

[MECHNET] Support nullable properties #169

fluxtah opened this issue Jul 2, 2013 · 0 comments

Comments

@fluxtah
Copy link
Contributor
fluxtah commented Jul 2, 2013

Sometimes it is desirable to parse JSON properties as NULL if they do not exist, Mechnet could support nullables as follows:

entity Person {
age:int?,
}

Where the ? specifies that the value is nullable, which would produce an entity with a generated age property of type Integer rather than int where Integer can be null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant
0