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

Not Case Sensitive #256

Open
jon49 opened this issue Jun 14, 2017 · 0 comments
Open

Not Case Sensitive #256

jon49 opened this issue Jun 14, 2017 · 0 comments

Comments

@jon49
Copy link

jon49 commented Jun 14, 2017

When I validate my schema it isn't failing when I put in different casing.

Schema:

{
        "$schema": "http://json-schema.org/draft-04/schema#",
        "additionalProperties": false,
        "definitions": {},
        "id": "http://example.com/example.json",
        "properties": {
            "clientCode": {
                "id": "/properties/clientCode",
                "minLength": 1,
                "type": "string"
            },
            "secret": {
                "id": "/properties/secret",
                "minLength": 1,
                "type": "string"
            }
        },
        "required": [
            "clientCode",
            "secret"
        ],
        "type": "object"
    }

Data:

{
  "ClientCode": "TEST",
  "Secret": "1234A"
}

What I called:

tv4.validate(data, schema)

Returns

true

I wouldn't think this would be expected behavior.

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

1 participant