Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildNDCSchema ¶
func BuildNDCSchema(input []byte, options ConvertOptions) (*rest.NDCHttpSchema, error)
BuildNDCSchema validates and builds the NDC schema.
func BuildTransformResponseSchema ¶
func BuildTransformResponseSchema( ndcSchema *rest.NDCHttpSchema, logger *slog.Logger, ) (*rest.NDCHttpSchema, error)
BuildTransformResponseSchema applies and builds the new schema with response transform settings.
Types ¶
type ConvertOptions ¶
ConvertOptions represent the common convert options for both OpenAPI v2 and v3.
type NDCBuilder ¶
type NDCBuilder struct {
*ConvertOptions
// contains filtered or unexported fields
}
NDCBuilder the NDC schema builder to validate REST connector schema.
func NewNDCBuilder ¶
func NewNDCBuilder(httpSchema *rest.NDCHttpSchema, options ConvertOptions) *NDCBuilder
NewNDCBuilder creates a new NDCBuilder instance.
func (*NDCBuilder) Build ¶
func (ndc *NDCBuilder) Build() (*rest.NDCHttpSchema, error)
Build validates and build the REST connector schema.
Click to show internal directories.
Click to hide internal directories.