Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve 'format:hostname' to handle "" and "."
The `fqdn` library used to provide `"hostname"` format validation (when installed) does not properly handle some known inputs, including `""` and `"."`. On these strings, the library improperly emits `ValueError`. Given that the library no longer appears to be receiving updates, there are two potential workarounds in `jsonschema`: 1. add `ValueError` handling via `raises=...` 2. add explicit handling for known patterns before calling out to `fqdn` This changeset implements (1) only, adding handling for `ValueError`. New test cases are added for `""` and `"."`. resolves #1121
- Loading branch information