jasnell / jsondoc

1 stars 0 forks source link

Default value? #5

Open algermissen opened 9 years ago

algermissen commented 9 years ago

One thing I might like to add is a construct to specify a default value, such as

["dispatchMode" (string) "standard"]

to express that, in case dispatchMode is absent, "standard" is the implied value.

Not sure how useful it would be, I just happened to write it like this accidentally and it felt natural.

Other than that - it works brilliantly and is extremely easy to read - IMHO. Let's hit I-D status.