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: 7 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 DefaultAdditional1

type DefaultAdditional1 struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
}

#/components/schemas/DefaultAdditional1

func (*DefaultAdditional1) ApplyDefaults

func (s *DefaultAdditional1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type DefaultAdditional2

type DefaultAdditional2 struct {
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/DefaultAdditional2

func (*DefaultAdditional2) ApplyDefaults

func (s *DefaultAdditional2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeDefaultDefault

type MergeDefaultDefault struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeDefaultDefault

func (*MergeDefaultDefault) ApplyDefaults

func (s *MergeDefaultDefault) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeDefaultWithAny

type MergeDefaultWithAny struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeDefaultWithAny

func (*MergeDefaultWithAny) ApplyDefaults

func (s *MergeDefaultWithAny) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeDefaultWithString

type MergeDefaultWithString struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeDefaultWithString

func (*MergeDefaultWithString) ApplyDefaults

func (s *MergeDefaultWithString) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeDefaultWithout

type MergeDefaultWithout struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeDefaultWithout

func (*MergeDefaultWithout) ApplyDefaults

func (s *MergeDefaultWithout) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeWithAnyDefault

type MergeWithAnyDefault struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeWithAnyDefault

func (*MergeWithAnyDefault) ApplyDefaults

func (s *MergeWithAnyDefault) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeWithAnyWithAny

type MergeWithAnyWithAny struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeWithAnyWithAny

func (*MergeWithAnyWithAny) ApplyDefaults

func (s *MergeWithAnyWithAny) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeWithAnyWithString

type MergeWithAnyWithString struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeWithAnyWithString

func (*MergeWithAnyWithString) ApplyDefaults

func (s *MergeWithAnyWithString) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeWithAnyWithout

type MergeWithAnyWithout struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeWithAnyWithout

func (*MergeWithAnyWithout) ApplyDefaults

func (s *MergeWithAnyWithout) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeWithStringDefault

type MergeWithStringDefault struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeWithStringDefault

func (*MergeWithStringDefault) ApplyDefaults

func (s *MergeWithStringDefault) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeWithStringWithAny

type MergeWithStringWithAny struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeWithStringWithAny

func (*MergeWithStringWithAny) ApplyDefaults

func (s *MergeWithStringWithAny) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeWithStringWithout

type MergeWithStringWithout struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeWithStringWithout

func (*MergeWithStringWithout) ApplyDefaults

func (s *MergeWithStringWithout) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeWithoutDefault

type MergeWithoutDefault struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeWithoutDefault

func (*MergeWithoutDefault) ApplyDefaults

func (s *MergeWithoutDefault) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeWithoutWithAny

type MergeWithoutWithAny struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeWithoutWithAny

func (*MergeWithoutWithAny) ApplyDefaults

func (s *MergeWithoutWithAny) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeWithoutWithString

type MergeWithoutWithString struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeWithoutWithString

func (*MergeWithoutWithString) ApplyDefaults

func (s *MergeWithoutWithString) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type MergeWithoutWithout

type MergeWithoutWithout struct {
	Field1 *int    `form:"field1,omitempty" json:"field1,omitempty"`
	Field2 *string `form:"field2,omitempty" json:"field2,omitempty"`
	FieldA *int    `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *string `form:"fieldB,omitempty" json:"fieldB,omitempty"`
}

#/components/schemas/MergeWithoutWithout

func (*MergeWithoutWithout) ApplyDefaults

func (s *MergeWithoutWithout) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type WithAnyAdditional1

type WithAnyAdditional1 struct {
	Field1               *int           `form:"field1,omitempty" json:"field1,omitempty"`
	Field2               *string        `form:"field2,omitempty" json:"field2,omitempty"`
	AdditionalProperties map[string]any `json:"-"`
}

#/components/schemas/WithAnyAdditional1

func (*WithAnyAdditional1) ApplyDefaults

func (s *WithAnyAdditional1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (WithAnyAdditional1) Get

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

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

func (WithAnyAdditional1) MarshalJSON

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

func (*WithAnyAdditional1) Set

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

Set sets an additional property value.

func (*WithAnyAdditional1) UnmarshalJSON

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

type WithAnyAdditional2

type WithAnyAdditional2 struct {
	FieldA               *int           `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB               *string        `form:"fieldB,omitempty" json:"fieldB,omitempty"`
	AdditionalProperties map[string]any `json:"-"`
}

#/components/schemas/WithAnyAdditional2

func (*WithAnyAdditional2) ApplyDefaults

func (s *WithAnyAdditional2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (WithAnyAdditional2) Get

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

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

func (WithAnyAdditional2) MarshalJSON

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

func (*WithAnyAdditional2) Set

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

Set sets an additional property value.

func (*WithAnyAdditional2) UnmarshalJSON

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

type WithStringAdditional1

type WithStringAdditional1 struct {
	Field1               *int              `form:"field1,omitempty" json:"field1,omitempty"`
	Field2               *string           `form:"field2,omitempty" json:"field2,omitempty"`
	AdditionalProperties map[string]string `json:"-"`
}

#/components/schemas/WithStringAdditional1

func (*WithStringAdditional1) ApplyDefaults

func (s *WithStringAdditional1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (WithStringAdditional1) Get

func (a WithStringAdditional1) Get(fieldName string) (value string, found bool)

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

func (WithStringAdditional1) MarshalJSON

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

func (*WithStringAdditional1) Set

func (a *WithStringAdditional1) Set(fieldName string, value string)

Set sets an additional property value.

func (*WithStringAdditional1) UnmarshalJSON

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

type WithStringAdditional2

type WithStringAdditional2 struct {
	FieldA               *int              `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB               *string           `form:"fieldB,omitempty" json:"fieldB,omitempty"`
	AdditionalProperties map[string]string `json:"-"`
}

#/components/schemas/WithStringAdditional2

func (*WithStringAdditional2) ApplyDefaults

func (s *WithStringAdditional2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (WithStringAdditional2) Get

func (a WithStringAdditional2) Get(fieldName string) (value string, found bool)

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

func (WithStringAdditional2) MarshalJSON

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

func (*WithStringAdditional2) Set

func (a *WithStringAdditional2) Set(fieldName string, value string)

Set sets an additional property value.

func (*WithStringAdditional2) UnmarshalJSON

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

type WithoutAdditional1

type WithoutAdditional1 struct {
	Field1               *int           `form:"field1,omitempty" json:"field1,omitempty"`
	Field2               *string        `form:"field2,omitempty" json:"field2,omitempty"`
	AdditionalProperties map[string]any `json:"-"`
}

#/components/schemas/WithoutAdditional1

func (*WithoutAdditional1) ApplyDefaults

func (s *WithoutAdditional1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (WithoutAdditional1) Get

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

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

func (WithoutAdditional1) MarshalJSON

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

func (*WithoutAdditional1) Set

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

Set sets an additional property value.

func (*WithoutAdditional1) UnmarshalJSON

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

type WithoutAdditional2

type WithoutAdditional2 struct {
	FieldA               *int           `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB               *string        `form:"fieldB,omitempty" json:"fieldB,omitempty"`
	AdditionalProperties map[string]any `json:"-"`
}

#/components/schemas/WithoutAdditional2

func (*WithoutAdditional2) ApplyDefaults

func (s *WithoutAdditional2) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (WithoutAdditional2) Get

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

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

func (WithoutAdditional2) MarshalJSON

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

func (*WithoutAdditional2) Set

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

Set sets an additional property value.

func (*WithoutAdditional2) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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