Currently the section on default values is not well explained, and contains non-systematic ODIN syntax. It should also show how to support JSON.
Ok but what do you have coming before the (json) <# ... #>? I would expect _default = ?
I.e. is it this:
Yes, _default = (json) <# … #> or _default = (type) < … >. I don’t have strong opinions on ‘=' or ‘:’, but I have not checked if ':’ clashes with other rules in the syntax. = works well.
Ok, let’s go with ‘=', I think that’s more obvious, and is UML-like as well. I’ll update the spec today on this.
Sounds good.
One very minor remark on your example. I think it’s missing {} at the beginning at end of the json, or the content will not be valid json, so:
Er… yes!