Documentation
¶
Overview ¶
Package formats holds the names of the OpenAPI Format Registry (https://spec.openapis.org/registry/format/), the values the JSON Schema "format" keyword may take in an OpenAPI description. A registry entry is a convention, not part of the specification: a tool may support none of it, and a format that is not in the list is legal (it is an annotation). A dated copy is kept here so an offline tool can say which formats it recognises; the list changes when the registry does.
Index ¶
Constants ¶
const RegistryDate = "2026-10-29"
RegistryDate is the day the copy below was taken from the registry.
Variables ¶
This section is empty.
Functions ¶
func Invalid ¶
Invalid returns a string that does not fit the registered format name: a value to try a server with. It is false for a name with no plain wrong value (most numeric formats are checked by range, not by shape) and for an unregistered one.
func InvalidSamples ¶
func InvalidSamples() []string
InvalidSamples lists the formats Invalid has a sample for, sorted.