...

Source file src/github.com/go-openapi/spec/errors.go

Documentation: github.com/go-openapi/spec

     1  package spec
     2  
     3  import "errors"
     4  
     5  // Error codes
     6  var (
     7  	// ErrUnknownTypeForReference indicates that a resolved reference was found in an unsupported container type
     8  	ErrUnknownTypeForReference = errors.New("unknown type for the resolved reference")
     9  
    10  	// ErrResolveRefNeedsAPointer indicates that a $ref target must be a valid JSON pointer
    11  	ErrResolveRefNeedsAPointer = errors.New("resolve ref: target needs to be a pointer")
    12  
    13  	// ErrDerefUnsupportedType indicates that a resolved reference was found in an unsupported container type.
    14  	// At the moment, $ref are supported only inside: schemas, parameters, responses, path items
    15  	ErrDerefUnsupportedType = errors.New("deref: unsupported type")
    16  
    17  	// ErrExpandUnsupportedType indicates that $ref expansion is attempted on some invalid type
    18  	ErrExpandUnsupportedType = errors.New("expand: unsupported type. Input should be of type *Parameter or *Response")
    19  )
    20  

View as plain text