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: 6 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 ComplexObject

type ComplexObject struct {
	Object  Object `form:"Object" json:"Object"`
	ID      int    `form:"Id" json:"Id"`
	IsAdmin bool   `form:"IsAdmin" json:"IsAdmin"`
}

#/components/schemas/ComplexObject

func (*ComplexObject) ApplyDefaults

func (s *ComplexObject) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type GetEnumsParameter

type GetEnumsParameter int

#/paths//enums/get/parameters/0/schema

const (
	N100 GetEnumsParameter = 100
	N200 GetEnumsParameter = 200
)

type Object

type Object struct {
	Role      string `form:"role" json:"role"`
	FirstName string `form:"firstName" json:"firstName"`
}

#/components/schemas/Object

func (*Object) ApplyDefaults

func (s *Object) 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