Versions in this module Expand all Collapse all v0 v0.0.0 May 13, 2026 Changes in this version + func Validate(value any, paramType string) error + type Body struct + Json string + JsonSchema *jsonschema.Schema + MapSchema map[string]any + Yaml string + func (b *Body) Validate(value any) error + type Endpoint struct + Body *Body + Description string + Method string + Name string + Params map[string]*Param + Path string + Summary string + func MakeEndpoint(method, path string, op *v3.Operation, item *v3.PathItem) *Endpoint + func (e *Endpoint) BodySchema(prefixes ...string) string + func (e *Endpoint) HasRequestBody() bool + func (e *Endpoint) MethodName() string + func (e *Endpoint) MustMakeUrl(params map[string][]any) string + func (e *Endpoint) ParamNames() []string + func (e *Endpoint) String() string + func (e *Endpoint) Validate(params map[string][]any, headers map[string][]string, body any) error + type OpenApiSpec struct + Endpoints map[string]*Endpoint + RawSchema []byte + Source string + func (o *OpenApiSpec) GetOperationName(methodName string) string + func (o *OpenApiSpec) MethodNames() []string + func (o *OpenApiSpec) New() (err error) + func (o *OpenApiSpec) NewFromBytes(source []byte) (*OpenApiSpec, error) + func (o *OpenApiSpec) NewFromSource(source string) (*OpenApiSpec, error) + func (o *OpenApiSpec) OperationNames() []string + func (o *OpenApiSpec) ReadSource() ([]byte, error) + type Param struct + Description string + In string + Name string + Required bool + Type string + func (p *Param) Coerce(value any) any + func (p *Param) Validate(value any) error