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

patternProperties keyword is not used in certain cases #213

Closed
Stranger6667 opened this issue May 4, 2021 · 1 comment · Fixed by #214
Closed

patternProperties keyword is not used in certain cases #213

Stranger6667 opened this issue May 4, 2021 · 1 comment · Fixed by #214

Comments

@Stranger6667
Copy link
Owner

As reported by @duckontheweb in #183 the following schema compiles, but shouldn't:

{
    "type": "object",
    "properties": {
        "eo:cloud_cover": {
            "type": "number",
        },
    },
    "patternProperties": {
        "^(?!eo:)": {}
    },
    "additionalProperties": false
}
@Stranger6667
Copy link
Owner Author

So, compile_patterns(obj, context).ok()? transforms to None, but it should be Some(Err(...))

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