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 ArrayValue

type ArrayValue = []Value

#/components/schemas/ArrayValue

type Document

type Document struct {
	Fields map[string]any `form:"fields,omitempty" json:"fields,omitempty"`
}

#/components/schemas/Document

func (*Document) ApplyDefaults

func (s *Document) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type DocumentFields

type DocumentFields = map[string]any

#/components/schemas/Document/properties/fields

type Value

type Value struct {
	StringValue *string     `form:"stringValue,omitempty" json:"stringValue,omitempty"`
	ArrayValue  *ArrayValue `form:"arrayValue,omitempty" json:"arrayValue,omitempty"`
}

#/components/schemas/Value

func (*Value) ApplyDefaults

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