Skip to content

implement propertyNames validator for v6, v7 and v2019-09 #315

@anagrius

Description

@anagrius
{
  "$schema": "https://json-schema.org/draft-07/schema",

  "properties": {
    
    "filters": {
      "type": "object",
      "propertyNames": {
        "maxLength": 100,
        "minLength": 1
      }
    }
  }
}

Should not accept:

{
    "filters": {
     "": "123" 
    }
}

But the validation passes.

Here is an example of it failing in another implementation:

https://www.jsonschemavalidator.net/s/cvPIboX7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions