Skip to content

Can't validate ip address with JSON Schema format keyword. #100

Closed
@PMExtra

Description

@PMExtra
  • VS Code Version: 1.56.0
  • OS Version: Windows_NT x64 10.0.19041

Steps to Reproduce:

  1. Create a schema file:
{
  "properties": {
    "address": {
      "type": "string",
      "format": "ipv4"
    }
  }
}
  1. Create a json file:
{
  "$schema": "path/to/the/above/schema",
  "address": "anything except a valid ipv4 address"
}

Expected result:

The address property should make a String is not a valid ipv4 address warning. Just like { "format": "email" } do.

Reference:
https://json-schema.org/understanding-json-schema/reference/string.html#ip-addresses

Does this issue occur when all extensions are disabled?: Yes

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunities

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions