Documentation
¶
Index ¶
- func DefaultHandlers() *parser.HandlerRegistry
- func HandleAllOf(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
- func HandleAnyOf(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
- func HandleArray(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
- func HandleBoolean(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
- func HandleDocument(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
- func HandleEnum(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
- func HandleInteger(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
- func HandleNumber(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
- func HandleObject(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
- func HandleOneOf(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
- func HandleReference(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
- func HandleString(ctx *parser.SchemaContext, doc parser.Root, name string, ...) (parser.Component, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultHandlers ¶
func DefaultHandlers() *parser.HandlerRegistry
func HandleAllOf ¶
func HandleAllOf(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
func HandleAnyOf ¶
func HandleAnyOf(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
func HandleArray ¶
func HandleArray(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
func HandleBoolean ¶
func HandleBoolean(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
func HandleDocument ¶
func HandleDocument(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
func HandleEnum ¶
func HandleEnum(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
Enum's always get moved up to the package level and as such always get added to the Global This create two different ways it can get handled, but we only have one code path for both!
1) When the enum is embedded within the Properties it will need to return a Reference as the enum will be moved up to the global level and the parent struct will need this reference field to the enum
2) When the enum is within the Definitions a field reference is not required, as any reference to it would come from a $Ref, as such no Reference is required on the return, the returned reference will get ignored in the calling code of HandleStruct, because it will try and add the returned Reference to the global level but as it's name/key will match on the already added Enum name/key bellow it will get ignored
func HandleInteger ¶
func HandleInteger(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
func HandleNumber ¶
func HandleNumber(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
func HandleObject ¶
func HandleObject(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
func HandleOneOf ¶
func HandleOneOf(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
func HandleReference ¶
func HandleReference(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
func HandleString ¶
func HandleString(ctx *parser.SchemaContext, doc parser.Root, name string, schema *jsonschema.Schema) (parser.Component, error)
Types ¶
This section is empty.