go-openapi / strfmt

openapi toolkit common string formats
Apache License 2.0
102 stars 62 forks source link

Simple hostnames no more validate #42

Closed fredbi closed 5 years ago

fredbi commented 5 years ago

Since PR #40, hostnames are considered FQDNs only and simple names such as localhost no more validate.

Further, the RFC rules on allowed positions for dashes are not enforced, and the hostname validator fails to detect that xxx-.example.com, xxx.-example.com and xxx.example-.com are invalid names.