Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractDefAsSchema ¶
ExtractDefAsSchema extracts a specific definition from the $defs property of JSON schema by its name. The resulting schema's $defs will contain any other definitions that are referenced by the extracted definition. It returns the definition as a JSON schema string.
func ExtractReferencedDefs ¶
ExtractReferencedDefs extracts all definitions referenced by a specific definition in the $defs property of JSON schema. It returns a map of definition names to their corresponding JSON schema definitions. The resulting map will include the specified definition and any other definitions that are referenced by it.
func MustExtractDefAsSchema ¶
MustExtractDefAsSchema wraps ExtractDefAsSchema and panics if an error occurs.
func MustExtractReferencedDefs ¶
MustExtractReferencedDefs wraps ExtractReferencedDefs and panics if an error occurs.
Types ¶
This section is empty.