output

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOpenAPISpecJSON

func GetOpenAPISpecJSON() ([]byte, error)

GetOpenAPISpecJSON returns the raw OpenAPI spec as JSON bytes.

Types

type ComplexOptionalNullable

type ComplexOptionalNullable struct {
	// Optional and nullable
	AliasName oapiCodegenTypesPkg.Nullable[string] `form:"alias_name,omitempty" json:"alias_name,omitempty"`
	// Optional and non nullable
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

#/components/schemas/complex_optional_nullable Complex, optional and nullable

func (*ComplexOptionalNullable) ApplyDefaults

func (s *ComplexOptionalNullable) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ComplexRequiredNullable

type ComplexRequiredNullable struct {
	// Optional and non nullable
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

#/components/schemas/complex_required_nullable Complex required and nullable

func (*ComplexRequiredNullable) ApplyDefaults

func (s *ComplexRequiredNullable) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type PatchRequest

type PatchRequest struct {
	SimpleRequiredNullable    SimpleRequiredNullable                                `form:"simple_required_nullable" json:"simple_required_nullable"`
	SimpleOptionalNullable    SimpleOptionalNullable                                `form:"simple_optional_nullable,omitempty" json:"simple_optional_nullable,omitempty"`
	SimpleOptionalNonNullable *SimpleOptionalNonNullable                            `form:"simple_optional_non_nullable,omitempty" json:"simple_optional_non_nullable,omitempty"`
	ComplexRequiredNullable   oapiCodegenTypesPkg.Nullable[ComplexRequiredNullable] `form:"complex_required_nullable" json:"complex_required_nullable"`
	ComplexOptionalNullable   oapiCodegenTypesPkg.Nullable[ComplexOptionalNullable] `form:"complex_optional_nullable,omitempty" json:"complex_optional_nullable,omitempty"`
	AdditionalProperties      map[string]any                                        `json:"-"`
}

#/components/schemas/PatchRequest A request to patch an existing user object.

func (*PatchRequest) ApplyDefaults

func (s *PatchRequest) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (PatchRequest) Get

func (a PatchRequest) Get(fieldName string) (value any, found bool)

Get returns the specified additional property value and whether it was found.

func (PatchRequest) MarshalJSON

func (a PatchRequest) MarshalJSON() ([]byte, error)

func (*PatchRequest) Set

func (a *PatchRequest) Set(fieldName string, value any)

Set sets an additional property value.

func (*PatchRequest) UnmarshalJSON

func (a *PatchRequest) UnmarshalJSON(b []byte) error

type SimpleOptionalNonNullable

type SimpleOptionalNonNullable = string

#/components/schemas/simple_optional_non_nullable Simple optional and non nullable

type SimpleOptionalNullable

type SimpleOptionalNullable = oapiCodegenTypesPkg.Nullable[int]

#/components/schemas/simple_optional_nullable Simple optional and nullable

type SimpleRequiredNullable

type SimpleRequiredNullable = oapiCodegenTypesPkg.Nullable[int]

#/components/schemas/simple_required_nullable Simple required and nullable

Jump to

Keyboard shortcuts

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