Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindAllOfBaseRef ¶
func FindAllOfBaseRef(schema *jsonschema.Schema) string
FindAllOfBaseRef extracts the base type name from allOf $ref composition. Returns the type name (e.g., "BaseField") if exactly one $ref is found in allOf, else "".
func ResolveVariantSchema ¶
func ResolveVariantSchema(rootSchema *jsonschema.Schema, variant *jsonschema.Schema) *jsonschema.Schema
func ValidateEvent ¶
func ValidateEvent(schema *jsonschema.Schema, event map[string]interface{}) error
Types ¶
type UnionResult ¶
func DiscriminatedUnion ¶
func DiscriminatedUnion(schema *jsonschema.Schema) (*UnionResult, error)
Click to show internal directories.
Click to hide internal directories.