Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LocationError ¶ added in v0.42.0
type LocationError struct {
// contains filtered or unexported fields
}
LocationError is a wrapper for an error that has a location.
func (*LocationError) Error ¶ added in v0.42.0
func (e *LocationError) Error() string
Error implements error.
func (*LocationError) FormatError ¶ added in v0.42.0
func (e *LocationError) FormatError(p errors.Printer) (next error)
FormatError implements errors.Formatter.
func (*LocationError) Unwrap ¶ added in v0.42.0
func (e *LocationError) Unwrap() error
Unwrap implements errors.Wrapper.
type Settings ¶ added in v0.36.0
type Settings struct { // External is external JSON Schema resolver. If nil, NoExternal resolver is used. External jsonschema.ExternalResolver // Filename is a name of the file being parsed. // // Used for error messages. Filename string // DepthLimit limits the number of nested references. Default is 1000. DepthLimit int // Enables type inference. // // For example: // // { // "items": { // "type": "string" // } // } // // In that case schemaParser will handle that schema as "array" schema, because it has "items" field. InferTypes bool }
Settings is parser settings.
Click to show internal directories.
Click to hide internal directories.