SpaceApi / validator

A micro-service to validate SpaceAPI endpoints.
Apache License 2.0
2 stars 2 forks source link

contact is not validated properly #34

Closed Bouni closed 3 years ago

Bouni commented 5 years ago

I just realized that contactis not validated properly. If I put this into the validator:

...
"contact": {
        "email": "info@dev.dev",
        "issue_mail": "issue@dev.dev",
        "invalid_entry_in_contact": "list@dev.dev"
    },
...

I get: {"valid": true, "message": null}

dbrgn commented 5 years ago

Hmm, seems that the JSON schema library validates non-strict by default, so unknown entries are ignored.

We'll have to find out if that behavior can be disabled, except for keys starting with ext_.

gidsi commented 3 years ago

I think we agreed on, that extra fields are not an error, so i will close this for now