patternproperties

package
v0.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

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

type InvalidPattern map[string]any

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

type ValidPatterns map[string]any

ValidPatterns is a free-form object constrained by two property-name regexes.

patternProperties: ^[a-z]+$ patternProperties: ^x-

swagger:model ValidPatterns

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL