xeipuuv / gojsonschema

An implementation of JSON Schema, draft v4 v6 & v7 - Go language
2.56k stars 358 forks source link

Hostname format false positives #370

Open srriverisland opened 1 year ago

srriverisland commented 1 year ago

Using draft-07 and this schema:

"host": {
  "type": "string",
  "format": "hostname"
}

I get false positives for various strings that should fail validation. Examples: