Help us shape the future of Go! Take the 2026 Go Developer Survey

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 AnyType1

type AnyType1 = any

#/components/schemas/AnyType1

type AnyType2

type AnyType2 = any

#/components/schemas/AnyType2 AnyType2 represents any type.

This should be an interface{}

type CustomStringType

type CustomStringType = string

#/components/schemas/CustomStringType

type DeprecatedProperty

type DeprecatedProperty struct {
	// Use this now!
	NewProp  string  `form:"newProp" json:"newProp"`
	OldProp1 *string `form:"oldProp1,omitempty" json:"oldProp1,omitempty"`
	// It used to do this and that
	OldProp2 *string `form:"oldProp2,omitempty" json:"oldProp2,omitempty"`
	// Deprecated: Use NewProp instead!
	OldProp3 *string `form:"oldProp3,omitempty" json:"oldProp3,omitempty"`
	// It used to do this and that
	// Deprecated: Use NewProp instead!
	OldProp4 *string `form:"oldProp4,omitempty" json:"oldProp4,omitempty"`
}

#/components/schemas/DeprecatedProperty

func (*DeprecatedProperty) ApplyDefaults

func (s *DeprecatedProperty) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type EnsureEverythingIsReferencedJSONResponse

type EnsureEverythingIsReferencedJSONResponse struct {
	AnyType1         *AnyType1         `form:"anyType1,omitempty" json:"anyType1,omitempty"`
	AnyType2         *AnyType2         `form:"anyType2,omitempty" json:"anyType2,omitempty"`
	CustomStringType *CustomStringType `form:"customStringType,omitempty" json:"customStringType,omitempty"`
}

#/paths//ensure-everything-is-referenced/get/responses/200/content/application/json/schema

func (*EnsureEverythingIsReferencedJSONResponse) ApplyDefaults

func (s *EnsureEverythingIsReferencedJSONResponse) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type EnumInObjInArray

type EnumInObjInArray = []EnumInObjInArrayItem

#/components/schemas/EnumInObjInArray

type EnumInObjInArrayItem

type EnumInObjInArrayItem struct {
	Val *string `form:"val,omitempty" json:"val,omitempty"`
}

#/components/schemas/EnumInObjInArray/items

func (*EnumInObjInArrayItem) ApplyDefaults

func (s *EnumInObjInArrayItem) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type EnumInObjInArrayVal

type EnumInObjInArrayVal string

#/components/schemas/EnumInObjInArray/items/properties/val

const (
	First  EnumInObjInArrayVal = "first"
	Second EnumInObjInArrayVal = "second"
)

type GenericObject

type GenericObject struct {
}

#/components/schemas/GenericObject

func (*GenericObject) ApplyDefaults

func (s *GenericObject) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type InnerRenamedAnonymousObject

type InnerRenamedAnonymousObject struct {
	ID int `form:"id" json:"id"`
}

#/components/schemas/OuterTypeWithAnonymousInner/properties/inner

func (*InnerRenamedAnonymousObject) ApplyDefaults

func (s *InnerRenamedAnonymousObject) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type Issue1051JSONResponse2001

type Issue1051JSONResponse2001 struct {
}

#/paths//issues/1051/get/responses/200/content/application/vnd.something.v1+json/schema

func (*Issue1051JSONResponse2001) ApplyDefaults

func (s *Issue1051JSONResponse2001) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type Issue1051JSONResponse2002

type Issue1051JSONResponse2002 struct {
}

#/paths//issues/1051/get/responses/200/content/application/json/schema

func (*Issue1051JSONResponse2002) ApplyDefaults

func (s *Issue1051JSONResponse2002) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type N5StartsWithNumber

type N5StartsWithNumber struct {
}

#/components/schemas/5StartsWithNumber This schema name starts with a number

func (*N5StartsWithNumber) ApplyDefaults

func (s *N5StartsWithNumber) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type NullableProperties

type NullableProperties struct {
	Optional            *string                              `form:"optional,omitempty" json:"optional,omitempty"`
	OptionalAndNullable oapiCodegenTypesPkg.Nullable[string] `form:"optionalAndNullable,omitempty" json:"optionalAndNullable,omitempty"`
	Required            string                               `form:"required" json:"required"`
	RequiredAndNullable oapiCodegenTypesPkg.Nullable[string] `form:"requiredAndNullable" json:"requiredAndNullable"`
}

#/components/schemas/NullableProperties

func (*NullableProperties) ApplyDefaults

func (s *NullableProperties) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type OuterTypeWithAnonymousInner

type OuterTypeWithAnonymousInner struct {
	Name  string                      `form:"name" json:"name"`
	Inner InnerRenamedAnonymousObject `form:"inner" json:"inner"`
}

#/components/schemas/OuterTypeWithAnonymousInner

func (*OuterTypeWithAnonymousInner) ApplyDefaults

func (s *OuterTypeWithAnonymousInner) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

Jump to

Keyboard shortcuts

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