Skip to content
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

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

Open
cstefanache opened this issue May 7, 2017 · 1 comment
Open

Comments

@cstefanache
Copy link
Contributor

cstefanache commented May 7, 2017

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

Trace:

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

SyntaxError: Unexpected token )
`

@christiansmith
Copy link
Member

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".

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

No branches or pull requests

2 participants