robotoworks / mechanoid

Eclipse plugin providing a set of DSL's for the rapid development of Android apps
58 stars 26 forks source link

[MECHNET] Support nullable properties #169

Open fluxtah opened 11 years ago

fluxtah commented 11 years ago

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