json-schema-org/json-schema-org.github.io

Validation of properties not defined in the schema

abunuwas opened this issue · 1 comments

Given a certain schema, should we invalidate payloads which contain keywords which are not defined in the schema?

For example, given a schema with the following property:

{
    "properties": {
        "property": {
            "type": "string"
        }
    }
}

Is the following payload acceptable or should be invalidated due to the presence of a property which is not defined in the schema?

{
    "property": "property",
    "invalid": "invalid"
}

Jeez just realised I'm asking in the wrong repo, sorry for the inconvenience, closing this now