anvilresearch/json-document

Having "type" as key name as validation property throws error

cstefanache opened this issue · 1 comments

Example:
... properties: { id: { type: 'string'}, type: {type: 'string' },

Trace:

`
undefined:47
if (value !== undefined && ) {
^

SyntaxError: Unexpected token )
`

Need more info on the context. This hasn't been a problem for us thus far and it is completely valid to have a property named "type".