types

package
v0.0.0-...-a347a26 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPValidationErrorDetail

type HTTPValidationErrorDetail struct {

	// Error describing field validation failure
	// Required: true
	Error *string `json:"error"`

	// Indicates how the invalid field was provided
	// Required: true
	In *string `json:"in"`

	// Key of field failing validation
	// Required: true
	Key *string `json:"key"`
}

HTTPValidationErrorDetail http validation error detail

swagger:model httpValidationErrorDetail

func (*HTTPValidationErrorDetail) ContextValidate

func (m *HTTPValidationErrorDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this http validation error detail based on context it is used

func (*HTTPValidationErrorDetail) MarshalBinary

func (m *HTTPValidationErrorDetail) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*HTTPValidationErrorDetail) UnmarshalBinary

func (m *HTTPValidationErrorDetail) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*HTTPValidationErrorDetail) Validate

func (m *HTTPValidationErrorDetail) Validate(formats strfmt.Registry) error

Validate validates this http validation error detail

type PublicHTTPError

type PublicHTTPError struct {

	// HTTP status code returned for the error
	// Example: 403
	// Required: true
	// Maximum: 599
	// Minimum: 100
	Code *int64 `json:"status"`

	// More detailed, human-readable, optional explanation of the error
	// Example: User is lacking permission to access this resource
	Detail string `json:"detail,omitempty"`

	// Short, human-readable description of the error
	// Example: Forbidden
	// Required: true
	Title *string `json:"title"`

	// Type of error returned, should be used for client-side error handling
	// Example: generic
	// Required: true
	Type *string `json:"type"`
}

PublicHTTPError public Http error

swagger:model publicHttpError

func (*PublicHTTPError) ContextValidate

func (m *PublicHTTPError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this public Http error based on context it is used

func (*PublicHTTPError) MarshalBinary

func (m *PublicHTTPError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicHTTPError) UnmarshalBinary

func (m *PublicHTTPError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicHTTPError) Validate

func (m *PublicHTTPError) Validate(formats strfmt.Registry) error

Validate validates this public Http error

type PublicHTTPValidationError

type PublicHTTPValidationError struct {
	PublicHTTPError

	// List of errors received while validating payload against schema
	// Required: true
	ValidationErrors []*HTTPValidationErrorDetail `json:"validationErrors"`
}

PublicHTTPValidationError public Http validation error

swagger:model publicHttpValidationError

func (*PublicHTTPValidationError) ContextValidate

func (m *PublicHTTPValidationError) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this public Http validation error based on the context it is used

func (*PublicHTTPValidationError) MarshalBinary

func (m *PublicHTTPValidationError) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (PublicHTTPValidationError) MarshalJSON

func (m PublicHTTPValidationError) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*PublicHTTPValidationError) UnmarshalBinary

func (m *PublicHTTPValidationError) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicHTTPValidationError) UnmarshalJSON

func (m *PublicHTTPValidationError) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*PublicHTTPValidationError) Validate

func (m *PublicHTTPValidationError) Validate(formats strfmt.Registry) error

Validate validates this public Http validation error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL