Skip to content

Conversation

@YongHeeK
Copy link
Contributor

using JSONSchema
using OrderedCollections

schema = Schema("""{
    "\$schema": "http://json-schema.org/draft-07/schema",
    "\$id": "test.json",
    "type": "object",
    "title": "test",
    "required": [
        "Key"
    ],
    "additionalProperties": true,
    "properties": {
        "Key": {
            "type": "string",
            "enum": ["A", "B"] 
        }
    }
}""")

data = OrderedDict("Key" => "A")
validate(data, schema) 

# validation should fail on this
data2 = OrderedDict("Key" => 100)
validate(data2, schema) 

I forgot to change type signature on validation.jl .

@YongHeeK
Copy link
Contributor Author

@odow would you mind merge and release this fix?

@odow odow merged commit 08e4ebb into JuliaIO:master Aug 24, 2020
@odow
Copy link
Collaborator

odow commented Aug 24, 2020

Yes, sorry. I have been moving countries (and continents) over the last two weeks 😄

@YongHeeK
Copy link
Contributor Author

Wow that must been hard in thesedays 😲
Thanks you

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

Successfully merging this pull request may close these issues.

2 participants