Documentation
¶
Overview ¶
Package patternproperties exercises the patternProperties object schema keyword: a string-typed annotation whose argument is a regex. Each line adds one regex → empty-schema entry to the schema's patternProperties map, and the regex is RE2-hygiene-checked (mirroring the pattern keyword).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InvalidPattern ¶
InvalidPattern carries a regex that does not compile under Go's RE2 engine. The value is preserved on the schema but a CodeInvalidAnnotation diagnostic is emitted (the keyword is NOT dropped silently).
patternProperties: [unclosed(
swagger:model InvalidPattern
type ValidPatterns ¶
ValidPatterns is a free-form object constrained by two property-name regexes.
patternProperties: ^[a-z]+$ patternProperties: ^x-
swagger:model ValidPatterns