Versions in this module Expand all Collapse all v0 v0.1.0 Apr 15, 2026 Changes in this version + func GetOpenAPISpecJSON() ([]byte, error) + func NewCreateItemRequest(server string, body createItemJSONRequestBody) (*http.Request, error) + func NewCreateItemRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewCreateOrderRequest(server string, body createOrderJSONRequestBody) (*http.Request, error) + func NewCreateOrderRequestWithApplicationJsonPatchJsonBody(server string, body createOrderApplicationJsonPatchJsonRequestBody) (*http.Request, error) + func NewCreateOrderRequestWithApplicationMergePatchJsonBody(server string, body createOrderApplicationMergePatchJsonRequestBody) (*http.Request, error) + func NewCreateOrderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewCreatePetRequest(server string, body createPetJSONRequestBody) (*http.Request, error) + func NewCreatePetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewGetQuxRequest(server string) (*http.Request, error) + func NewGetStatusRequest(server string) (*http.Request, error) + func NewGetZapRequest(server string) (*http.Request, error) + func NewListEntitiesRequest(server string) (*http.Request, error) + func NewListItemsRequest(server string) (*http.Request, error) + func NewPatchResourceRequest(server string, id string, body patchResourceJSONRequestBody) (*http.Request, error) + func NewPatchResourceRequestWithApplicationJsonPatchJsonBody(server string, id string, ...) (*http.Request, error) + func NewPatchResourceRequestWithApplicationMergePatchJsonBody(server string, id string, ...) (*http.Request, error) + func NewPatchResourceRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error) + func NewPostFooRequest(server string, params *PostFooParams, body postFooJSONRequestBody) (*http.Request, error) + func NewPostFooRequestWithBody(server string, params *PostFooParams, contentType string, body io.Reader) (*http.Request, error) + func NewPostQuxRequest(server string, body postQuxJSONRequestBody) (*http.Request, error) + func NewPostQuxRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewPostZapRequest(server string, body postZapJSONRequestBody) (*http.Request, error) + func NewPostZapRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + func NewQueryRequest(server string, body queryJSONRequestBody) (*http.Request, error) + func NewQueryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error) + type Bar struct + Value *string + func (s *Bar) ApplyDefaults() + type Bar2 struct + Value *float32 + func (s *Bar2) ApplyDefaults() + type Client struct + Client HttpRequestDoer + RequestEditors []RequestEditorFn + Server string + func NewClient(server string, opts ...ClientOption) (*Client, error) + func (c *Client) CreateItem(ctx context.Context, body createItemJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CreateItemWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) CreateOrder(ctx context.Context, body createOrderJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CreateOrderWithApplicationJsonPatchJsonBody(ctx context.Context, body createOrderApplicationJsonPatchJsonRequestBody, ...) (*http.Response, error) + func (c *Client) CreateOrderWithApplicationMergePatchJsonBody(ctx context.Context, body createOrderApplicationMergePatchJsonRequestBody, ...) (*http.Response, error) + func (c *Client) CreateOrderWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) CreatePet(ctx context.Context, body createPetJSONRequestBody, ...) (*http.Response, error) + func (c *Client) CreatePetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) GetQux(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetStatus(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) GetZap(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListEntities(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) ListItems(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) PatchResource(ctx context.Context, id string, body patchResourceJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PatchResourceWithApplicationJsonPatchJsonBody(ctx context.Context, id string, ...) (*http.Response, error) + func (c *Client) PatchResourceWithApplicationMergePatchJsonBody(ctx context.Context, id string, ...) (*http.Response, error) + func (c *Client) PatchResourceWithBody(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) PostFoo(ctx context.Context, params *PostFooParams, body postFooJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PostFooWithBody(ctx context.Context, params *PostFooParams, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) PostQux(ctx context.Context, body postQuxJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PostQuxWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) PostZap(ctx context.Context, body postZapJSONRequestBody, ...) (*http.Response, error) + func (c *Client) PostZapWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + func (c *Client) Query(ctx context.Context, body queryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + func (c *Client) QueryWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientHttpError struct + Body E + RawBody []byte + StatusCode int + func (e *ClientHttpError[E]) Error() string + type ClientInterface interface + CreateItem func(ctx context.Context, body createItemJSONRequestBody, ...) (*http.Response, error) + CreateItemWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + CreateOrder func(ctx context.Context, body createOrderJSONRequestBody, ...) (*http.Response, error) + CreateOrderWithApplicationJsonPatchJsonBody func(ctx context.Context, body createOrderApplicationJsonPatchJsonRequestBody, ...) (*http.Response, error) + CreateOrderWithApplicationMergePatchJsonBody func(ctx context.Context, body createOrderApplicationMergePatchJsonRequestBody, ...) (*http.Response, error) + CreateOrderWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + CreatePet func(ctx context.Context, body createPetJSONRequestBody, ...) (*http.Response, error) + CreatePetWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + GetQux func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + GetStatus func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + GetZap func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + ListEntities func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + ListItems func(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error) + PatchResource func(ctx context.Context, id string, body patchResourceJSONRequestBody, ...) (*http.Response, error) + PatchResourceWithApplicationJsonPatchJsonBody func(ctx context.Context, id string, ...) (*http.Response, error) + PatchResourceWithApplicationMergePatchJsonBody func(ctx context.Context, id string, ...) (*http.Response, error) + PatchResourceWithBody func(ctx context.Context, id string, contentType string, body io.Reader, ...) (*http.Response, error) + PostFoo func(ctx context.Context, params *PostFooParams, body postFooJSONRequestBody, ...) (*http.Response, error) + PostFooWithBody func(ctx context.Context, params *PostFooParams, contentType string, body io.Reader, ...) (*http.Response, error) + PostQux func(ctx context.Context, body postQuxJSONRequestBody, ...) (*http.Response, error) + PostQuxWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + PostZap func(ctx context.Context, body postZapJSONRequestBody, ...) (*http.Response, error) + PostZapWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + Query func(ctx context.Context, body queryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error) + QueryWithBody func(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error) + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HttpRequestDoer) ClientOption + func WithRequestEditorFn(fn RequestEditorFn) ClientOption + type CreateItemJSONRequest struct + Name *string + func (s *CreateItemJSONRequest) ApplyDefaults() + type CreateItemResponse struct + ID *string + Name *string + func (s *CreateItemResponse) ApplyDefaults() + type CreateOrderJSONRequest1 struct + ID *string + Product *string + func (s *CreateOrderJSONRequest1) ApplyDefaults() + type CreateOrderJSONRequest2 struct + Product *string + func (s *CreateOrderJSONRequest2) ApplyDefaults() + type CreateOrderJSONRequest3 = []PostOrdersRequest + type CreatePetJSONRequest struct + Name *string + Species *string + func (s *CreatePetJSONRequest) ApplyDefaults() + type CustomQux struct + Label *string + func (s *CustomQux) ApplyDefaults() + type GetEntities200Response = []Widget + type GetQuxJSONResponse struct + Data *string + func (s *GetQuxJSONResponse) ApplyDefaults() + type GetStatusResponse struct + Status *string + Timestamp *string + func (s *GetStatusResponse) ApplyDefaults() + type GetZapJSONResponse struct + Result *string + func (s *GetZapJSONResponse) ApplyDefaults() + type HttpRequestDoer interface + Do func(req *http.Request) (*http.Response, error) + type JSONPatch = []JSONPatchItem + type JSONPatchItem struct + Op *string + Path *string + func (s *JSONPatchItem) ApplyDefaults() + type ListEntitiesJSONResponse struct + Data []Widget + Metadata string + func (s *ListEntitiesJSONResponse) ApplyDefaults() + type ListItemsResponse = string + type Metadata = string + type Order struct + ID *string + Product *string + func (s *Order) ApplyDefaults() + type PatchResourceJSONResponse2001 struct + func (t *PatchResourceJSONResponse2001) ApplyDefaults() + func (t *PatchResourceJSONResponse2001) FromPatchResourcesID200ResponseJSONOneOf11(v PatchResourcesID200ResponseJSONOneOf11) error + func (t *PatchResourceJSONResponse2001) FromPatchResourcesID200ResponseJSONOneOf21(v PatchResourcesID200ResponseJSONOneOf21) error + func (t *PatchResourceJSONResponse2001) FromResource(v Resource) error + func (t *PatchResourceJSONResponse2001) MergePatchResourcesID200ResponseJSONOneOf11(v PatchResourcesID200ResponseJSONOneOf11) error + func (t *PatchResourceJSONResponse2001) MergePatchResourcesID200ResponseJSONOneOf21(v PatchResourcesID200ResponseJSONOneOf21) error + func (t *PatchResourceJSONResponse2001) MergeResource(v Resource) error + func (t *PatchResourceJSONResponse2001) UnmarshalJSON(b []byte) error + func (t PatchResourceJSONResponse2001) AsPatchResourcesID200ResponseJSONOneOf11() (PatchResourcesID200ResponseJSONOneOf11, error) + func (t PatchResourceJSONResponse2001) AsPatchResourcesID200ResponseJSONOneOf21() (PatchResourcesID200ResponseJSONOneOf21, error) + func (t PatchResourceJSONResponse2001) AsResource() (Resource, error) + func (t PatchResourceJSONResponse2001) MarshalJSON() ([]byte, error) + type PatchResourceJSONResponse2002 struct + func (t *PatchResourceJSONResponse2002) ApplyDefaults() + func (t *PatchResourceJSONResponse2002) FromPatchResourcesID200ResponseJSONOneOf12(v PatchResourcesID200ResponseJSONOneOf12) error + func (t *PatchResourceJSONResponse2002) FromPatchResourcesID200ResponseJSONOneOf22(v PatchResourcesID200ResponseJSONOneOf22) error + func (t *PatchResourceJSONResponse2002) FromResource(v Resource) error + func (t *PatchResourceJSONResponse2002) MergePatchResourcesID200ResponseJSONOneOf12(v PatchResourcesID200ResponseJSONOneOf12) error + func (t *PatchResourceJSONResponse2002) MergePatchResourcesID200ResponseJSONOneOf22(v PatchResourcesID200ResponseJSONOneOf22) error + func (t *PatchResourceJSONResponse2002) MergeResource(v Resource) error + func (t *PatchResourceJSONResponse2002) UnmarshalJSON(b []byte) error + func (t PatchResourceJSONResponse2002) AsPatchResourcesID200ResponseJSONOneOf12() (PatchResourcesID200ResponseJSONOneOf12, error) + func (t PatchResourceJSONResponse2002) AsPatchResourcesID200ResponseJSONOneOf22() (PatchResourcesID200ResponseJSONOneOf22, error) + func (t PatchResourceJSONResponse2002) AsResource() (Resource, error) + func (t PatchResourceJSONResponse2002) MarshalJSON() ([]byte, error) + type PatchResourcesID200ResponseJSONOneOf11 = []Resource + type PatchResourcesID200ResponseJSONOneOf12 = []Resource + type PatchResourcesID200ResponseJSONOneOf21 = oapiCodegenTypesPkg.Nullable[string] + type PatchResourcesID200ResponseJSONOneOf22 = oapiCodegenTypesPkg.Nullable[string] + type Pet struct + ID *int + Name *string + func (s *Pet) ApplyDefaults() + type PostFooJSONRequest struct + Value *int + func (s *PostFooJSONRequest) ApplyDefaults() + type PostFooJSONResponse struct + Value1 *Bar + Value2 *Bar2 + func (s *PostFooJSONResponse) ApplyDefaults() + type PostFooParams struct + Bar *string + type PostOrdersRequest struct + Op *string + Path *string + Value *string + func (s *PostOrdersRequest) ApplyDefaults() + type QueryJSONRequest struct + Q *string + func (s *QueryJSONRequest) ApplyDefaults() + type QueryResponse struct + Results []string + func (s *QueryResponse) ApplyDefaults() + type RequestEditorFn func(ctx context.Context, req *http.Request) error + type Resource struct + ID *string + Name *string + Status *string + func (s *Resource) ApplyDefaults() + type ResourceMVO struct + Name *string + Status *string + func (s *ResourceMVO) ApplyDefaults() + type SimpleClient struct + func NewSimpleClient(server string, opts ...ClientOption) (*SimpleClient, error) + func (c *SimpleClient) CreateItem(ctx context.Context, body createItemJSONRequestBody, ...) (CreateItemResponse, error) + func (c *SimpleClient) CreateOrder(ctx context.Context, body createOrderJSONRequestBody, ...) (Order, error) + func (c *SimpleClient) CreatePet(ctx context.Context, body createPetJSONRequestBody, ...) (Pet, error) + func (c *SimpleClient) GetQux(ctx context.Context, reqEditors ...RequestEditorFn) (map[string]any, error) + func (c *SimpleClient) GetStatus(ctx context.Context, reqEditors ...RequestEditorFn) (GetStatusResponse, error) + func (c *SimpleClient) GetZap(ctx context.Context, reqEditors ...RequestEditorFn) (map[string]any, error) + func (c *SimpleClient) ListEntities(ctx context.Context, reqEditors ...RequestEditorFn) (map[string]any, error) + func (c *SimpleClient) ListItems(ctx context.Context, reqEditors ...RequestEditorFn) (ListItemsResponse, error) + func (c *SimpleClient) PostFoo(ctx context.Context, params *PostFooParams, body postFooJSONRequestBody, ...) (map[string]any, error) + func (c *SimpleClient) Query(ctx context.Context, body queryJSONRequestBody, reqEditors ...RequestEditorFn) (QueryResponse, error) + type Widget = string + type Zap = string