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

type AllOfWithOneOf struct {
	Base                 *string               `form:"base,omitempty" json:"base,omitempty"`
	AllOfWithOneOfAllOf1 *AllOfWithOneOfAllOf1 `json:"-"`
}

#/components/schemas/AllOfWithOneOf

func (*AllOfWithOneOf) ApplyDefaults

func (s *AllOfWithOneOf) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AllOfWithOneOf) MarshalJSON

func (s AllOfWithOneOf) MarshalJSON() ([]byte, error)

func (*AllOfWithOneOf) UnmarshalJSON

func (s *AllOfWithOneOf) UnmarshalJSON(data []byte) error

type AllOfWithOneOfAllOf1

type AllOfWithOneOfAllOf1 struct {
	// contains filtered or unexported fields
}

func (*AllOfWithOneOfAllOf1) ApplyDefaults

func (t *AllOfWithOneOfAllOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (AllOfWithOneOfAllOf1) AsAllOfWithOneOfAllOf1OneOf0

func (t AllOfWithOneOfAllOf1) AsAllOfWithOneOfAllOf1OneOf0() (AllOfWithOneOfAllOf1OneOf0, error)

AsAllOfWithOneOfAllOf1OneOf0 returns the union data inside the AllOfWithOneOfAllOf1 as a AllOfWithOneOfAllOf1OneOf0.

func (AllOfWithOneOfAllOf1) AsAllOfWithOneOfAllOf1OneOf1

func (t AllOfWithOneOfAllOf1) AsAllOfWithOneOfAllOf1OneOf1() (AllOfWithOneOfAllOf1OneOf1, error)

AsAllOfWithOneOfAllOf1OneOf1 returns the union data inside the AllOfWithOneOfAllOf1 as a AllOfWithOneOfAllOf1OneOf1.

func (*AllOfWithOneOfAllOf1) FromAllOfWithOneOfAllOf1OneOf0

func (t *AllOfWithOneOfAllOf1) FromAllOfWithOneOfAllOf1OneOf0(v AllOfWithOneOfAllOf1OneOf0) error

FromAllOfWithOneOfAllOf1OneOf0 overwrites any union data inside the AllOfWithOneOfAllOf1 as the provided AllOfWithOneOfAllOf1OneOf0.

func (*AllOfWithOneOfAllOf1) FromAllOfWithOneOfAllOf1OneOf1

func (t *AllOfWithOneOfAllOf1) FromAllOfWithOneOfAllOf1OneOf1(v AllOfWithOneOfAllOf1OneOf1) error

FromAllOfWithOneOfAllOf1OneOf1 overwrites any union data inside the AllOfWithOneOfAllOf1 as the provided AllOfWithOneOfAllOf1OneOf1.

func (AllOfWithOneOfAllOf1) MarshalJSON

func (t AllOfWithOneOfAllOf1) MarshalJSON() ([]byte, error)

func (*AllOfWithOneOfAllOf1) MergeAllOfWithOneOfAllOf1OneOf0

func (t *AllOfWithOneOfAllOf1) MergeAllOfWithOneOfAllOf1OneOf0(v AllOfWithOneOfAllOf1OneOf0) error

MergeAllOfWithOneOfAllOf1OneOf0 performs a merge with any union data inside the AllOfWithOneOfAllOf1, using the provided AllOfWithOneOfAllOf1OneOf0.

func (*AllOfWithOneOfAllOf1) MergeAllOfWithOneOfAllOf1OneOf1

func (t *AllOfWithOneOfAllOf1) MergeAllOfWithOneOfAllOf1OneOf1(v AllOfWithOneOfAllOf1OneOf1) error

MergeAllOfWithOneOfAllOf1OneOf1 performs a merge with any union data inside the AllOfWithOneOfAllOf1, using the provided AllOfWithOneOfAllOf1OneOf1.

func (*AllOfWithOneOfAllOf1) UnmarshalJSON

func (t *AllOfWithOneOfAllOf1) UnmarshalJSON(b []byte) error

type AllOfWithOneOfAllOf1OneOf0

type AllOfWithOneOfAllOf1OneOf0 struct {
	OptionA *bool `form:"optionA,omitempty" json:"optionA,omitempty"`
}

#/components/schemas/AllOfWithOneOf/allOf/1/oneOf/0

func (*AllOfWithOneOfAllOf1OneOf0) ApplyDefaults

func (s *AllOfWithOneOfAllOf1OneOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type AllOfWithOneOfAllOf1OneOf1

type AllOfWithOneOfAllOf1OneOf1 struct {
	OptionB *int `form:"optionB,omitempty" json:"optionB,omitempty"`
}

#/components/schemas/AllOfWithOneOf/allOf/1/oneOf/1

func (*AllOfWithOneOfAllOf1OneOf1) ApplyDefaults

func (s *AllOfWithOneOfAllOf1OneOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ArrayOfAnyOf

type ArrayOfAnyOf = []ArrayOfAnyOfItem

#/components/schemas/ArrayOfAnyOf

type ArrayOfAnyOfAnyOf1

type ArrayOfAnyOfAnyOf1 struct {
	ID *int `form:"id,omitempty" json:"id,omitempty"`
}

#/components/schemas/ArrayOfAnyOf/items/anyOf/1

func (*ArrayOfAnyOfAnyOf1) ApplyDefaults

func (s *ArrayOfAnyOfAnyOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ArrayOfAnyOfItem

type ArrayOfAnyOfItem struct {
	// contains filtered or unexported fields
}

func (*ArrayOfAnyOfItem) ApplyDefaults

func (t *ArrayOfAnyOfItem) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (ArrayOfAnyOfItem) AsArrayOfAnyOfAnyOf1

func (t ArrayOfAnyOfItem) AsArrayOfAnyOfAnyOf1() (ArrayOfAnyOfAnyOf1, error)

AsArrayOfAnyOfAnyOf1 returns the union data inside the ArrayOfAnyOfItem as a ArrayOfAnyOfAnyOf1.

func (ArrayOfAnyOfItem) AsString0

func (t ArrayOfAnyOfItem) AsString0() (string, error)

AsString0 returns the union data inside the ArrayOfAnyOfItem as a string.

func (*ArrayOfAnyOfItem) FromArrayOfAnyOfAnyOf1

func (t *ArrayOfAnyOfItem) FromArrayOfAnyOfAnyOf1(v ArrayOfAnyOfAnyOf1) error

FromArrayOfAnyOfAnyOf1 overwrites any union data inside the ArrayOfAnyOfItem as the provided ArrayOfAnyOfAnyOf1.

func (*ArrayOfAnyOfItem) FromString0

func (t *ArrayOfAnyOfItem) FromString0(v string) error

FromString0 overwrites any union data inside the ArrayOfAnyOfItem as the provided string.

func (ArrayOfAnyOfItem) MarshalJSON

func (t ArrayOfAnyOfItem) MarshalJSON() ([]byte, error)

func (*ArrayOfAnyOfItem) MergeArrayOfAnyOfAnyOf1

func (t *ArrayOfAnyOfItem) MergeArrayOfAnyOfAnyOf1(v ArrayOfAnyOfAnyOf1) error

MergeArrayOfAnyOfAnyOf1 performs a merge with any union data inside the ArrayOfAnyOfItem, using the provided ArrayOfAnyOfAnyOf1.

func (*ArrayOfAnyOfItem) MergeString0

func (t *ArrayOfAnyOfItem) MergeString0(v string) error

MergeString0 performs a merge with any union data inside the ArrayOfAnyOfItem, using the provided string.

func (*ArrayOfAnyOfItem) UnmarshalJSON

func (t *ArrayOfAnyOfItem) UnmarshalJSON(b []byte) error

type BasePrompt

type BasePrompt struct {
	Name    string `form:"name" json:"name"`
	Version int    `form:"version" json:"version"`
}

#/components/schemas/BasePrompt

func (*BasePrompt) ApplyDefaults

func (s *BasePrompt) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ChatMessage

type ChatMessage struct {
	Role    string `form:"role" json:"role"`
	Content string `form:"content" json:"content"`
}

#/components/schemas/ChatMessage

func (*ChatMessage) ApplyDefaults

func (s *ChatMessage) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ChatPrompt

type ChatPrompt struct {
	Prompt  []ChatMessage `form:"prompt" json:"prompt"`
	Name    string        `form:"name" json:"name"`
	Version int           `form:"version" json:"version"`
}

#/components/schemas/ChatPrompt

func (*ChatPrompt) ApplyDefaults

func (s *ChatPrompt) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ChatPromptPrompt

type ChatPromptPrompt = []ChatMessage

#/components/schemas/ChatPrompt/properties/prompt

type CompositionEnumTest

type CompositionEnumTest struct {
	FieldA *CompositionEnumTestFieldA `form:"fieldA,omitempty" json:"fieldA,omitempty"`
	FieldB *CompositionEnumTestFieldB `form:"fieldB,omitempty" json:"fieldB,omitempty"`
	FieldC *CompositionEnumTestFieldC `form:"fieldC,omitempty" json:"fieldC,omitempty"`
}

#/components/schemas/CompositionEnumTest

func (*CompositionEnumTest) ApplyDefaults

func (s *CompositionEnumTest) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type CompositionEnumTestFieldA

type CompositionEnumTestFieldA struct {
	// contains filtered or unexported fields
}

func (*CompositionEnumTestFieldA) ApplyDefaults

func (t *CompositionEnumTestFieldA) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (CompositionEnumTestFieldA) AsCompositionEnumTestFieldAAnyOf1

func (t CompositionEnumTestFieldA) AsCompositionEnumTestFieldAAnyOf1() (CompositionEnumTestFieldAAnyOf1, error)

AsCompositionEnumTestFieldAAnyOf1 returns the union data inside the CompositionEnumTestFieldA as a CompositionEnumTestFieldAAnyOf1.

func (CompositionEnumTestFieldA) AsString0

func (t CompositionEnumTestFieldA) AsString0() (string, error)

AsString0 returns the union data inside the CompositionEnumTestFieldA as a string.

func (*CompositionEnumTestFieldA) FromCompositionEnumTestFieldAAnyOf1

func (t *CompositionEnumTestFieldA) FromCompositionEnumTestFieldAAnyOf1(v CompositionEnumTestFieldAAnyOf1) error

FromCompositionEnumTestFieldAAnyOf1 overwrites any union data inside the CompositionEnumTestFieldA as the provided CompositionEnumTestFieldAAnyOf1.

func (*CompositionEnumTestFieldA) FromString0

func (t *CompositionEnumTestFieldA) FromString0(v string) error

FromString0 overwrites any union data inside the CompositionEnumTestFieldA as the provided string.

func (CompositionEnumTestFieldA) MarshalJSON

func (t CompositionEnumTestFieldA) MarshalJSON() ([]byte, error)

func (*CompositionEnumTestFieldA) MergeCompositionEnumTestFieldAAnyOf1

func (t *CompositionEnumTestFieldA) MergeCompositionEnumTestFieldAAnyOf1(v CompositionEnumTestFieldAAnyOf1) error

MergeCompositionEnumTestFieldAAnyOf1 performs a merge with any union data inside the CompositionEnumTestFieldA, using the provided CompositionEnumTestFieldAAnyOf1.

func (*CompositionEnumTestFieldA) MergeString0

func (t *CompositionEnumTestFieldA) MergeString0(v string) error

MergeString0 performs a merge with any union data inside the CompositionEnumTestFieldA, using the provided string.

func (*CompositionEnumTestFieldA) UnmarshalJSON

func (t *CompositionEnumTestFieldA) UnmarshalJSON(b []byte) error

type CompositionEnumTestFieldAAnyOf1

type CompositionEnumTestFieldAAnyOf1 string

#/components/schemas/CompositionEnumTest/properties/fieldA/anyOf/1

const (
	CompositionEnumTestFieldAAnyOf1Foo CompositionEnumTestFieldAAnyOf1 = "foo"
	CompositionEnumTestFieldAAnyOf1Bar CompositionEnumTestFieldAAnyOf1 = "bar"
)

type CompositionEnumTestFieldB

type CompositionEnumTestFieldB struct {
}

#/components/schemas/CompositionEnumTest/properties/fieldB

func (*CompositionEnumTestFieldB) ApplyDefaults

func (s *CompositionEnumTestFieldB) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type CompositionEnumTestFieldC

type CompositionEnumTestFieldC struct {
	// contains filtered or unexported fields
}

func (*CompositionEnumTestFieldC) ApplyDefaults

func (t *CompositionEnumTestFieldC) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (CompositionEnumTestFieldC) AsCompositionEnumTestFieldCOneOf1

func (t CompositionEnumTestFieldC) AsCompositionEnumTestFieldCOneOf1() (CompositionEnumTestFieldCOneOf1, error)

AsCompositionEnumTestFieldCOneOf1 returns the union data inside the CompositionEnumTestFieldC as a CompositionEnumTestFieldCOneOf1.

func (CompositionEnumTestFieldC) AsString0

func (t CompositionEnumTestFieldC) AsString0() (string, error)

AsString0 returns the union data inside the CompositionEnumTestFieldC as a string.

func (*CompositionEnumTestFieldC) FromCompositionEnumTestFieldCOneOf1

func (t *CompositionEnumTestFieldC) FromCompositionEnumTestFieldCOneOf1(v CompositionEnumTestFieldCOneOf1) error

FromCompositionEnumTestFieldCOneOf1 overwrites any union data inside the CompositionEnumTestFieldC as the provided CompositionEnumTestFieldCOneOf1.

func (*CompositionEnumTestFieldC) FromString0

func (t *CompositionEnumTestFieldC) FromString0(v string) error

FromString0 overwrites any union data inside the CompositionEnumTestFieldC as the provided string.

func (CompositionEnumTestFieldC) MarshalJSON

func (t CompositionEnumTestFieldC) MarshalJSON() ([]byte, error)

func (*CompositionEnumTestFieldC) MergeCompositionEnumTestFieldCOneOf1

func (t *CompositionEnumTestFieldC) MergeCompositionEnumTestFieldCOneOf1(v CompositionEnumTestFieldCOneOf1) error

MergeCompositionEnumTestFieldCOneOf1 performs a merge with any union data inside the CompositionEnumTestFieldC, using the provided CompositionEnumTestFieldCOneOf1.

func (*CompositionEnumTestFieldC) MergeString0

func (t *CompositionEnumTestFieldC) MergeString0(v string) error

MergeString0 performs a merge with any union data inside the CompositionEnumTestFieldC, using the provided string.

func (*CompositionEnumTestFieldC) UnmarshalJSON

func (t *CompositionEnumTestFieldC) UnmarshalJSON(b []byte) error

type CompositionEnumTestFieldCOneOf1

type CompositionEnumTestFieldCOneOf1 string

#/components/schemas/CompositionEnumTest/properties/fieldC/oneOf/1

const (
	CompositionEnumTestFieldCOneOf1Foo CompositionEnumTestFieldCOneOf1 = "foo"
	CompositionEnumTestFieldCOneOf1Bar CompositionEnumTestFieldCOneOf1 = "bar"
)

type EnsureEverythingIsReferencedJSONResponse

type EnsureEverythingIsReferencedJSONResponse struct {
	ArrayOfAnyOf            *ArrayOfAnyOf            `form:"arrayOfAnyOf,omitempty" json:"arrayOfAnyOf,omitempty"`
	ObjectWithAnyOfProperty *ObjectWithAnyOfProperty `form:"objectWithAnyOfProperty,omitempty" json:"objectWithAnyOfProperty,omitempty"`
	ObjectWithOneOfProperty *ObjectWithOneOfProperty `form:"objectWithOneOfProperty,omitempty" json:"objectWithOneOfProperty,omitempty"`
	AllOfWithOneOf          *AllOfWithOneOf          `form:"allOfWithOneOf,omitempty" json:"allOfWithOneOf,omitempty"`
	Prompt                  *Prompt                  `form:"prompt,omitempty" json:"prompt,omitempty"`
	CompositionEnumTest     *CompositionEnumTest     `form:"compositionEnumTest,omitempty" json:"compositionEnumTest,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 ObjectWithAnyOfProperty

type ObjectWithAnyOfProperty struct {
	Value *ObjectWithAnyOfPropertyValue `form:"value,omitempty" json:"value,omitempty"`
}

#/components/schemas/ObjectWithAnyOfProperty

func (*ObjectWithAnyOfProperty) ApplyDefaults

func (s *ObjectWithAnyOfProperty) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ObjectWithAnyOfPropertyValue

type ObjectWithAnyOfPropertyValue struct {
	// contains filtered or unexported fields
}

func (*ObjectWithAnyOfPropertyValue) ApplyDefaults

func (t *ObjectWithAnyOfPropertyValue) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (ObjectWithAnyOfPropertyValue) AsInt1

func (t ObjectWithAnyOfPropertyValue) AsInt1() (int, error)

AsInt1 returns the union data inside the ObjectWithAnyOfPropertyValue as a int.

func (ObjectWithAnyOfPropertyValue) AsString0

func (t ObjectWithAnyOfPropertyValue) AsString0() (string, error)

AsString0 returns the union data inside the ObjectWithAnyOfPropertyValue as a string.

func (*ObjectWithAnyOfPropertyValue) FromInt1

func (t *ObjectWithAnyOfPropertyValue) FromInt1(v int) error

FromInt1 overwrites any union data inside the ObjectWithAnyOfPropertyValue as the provided int.

func (*ObjectWithAnyOfPropertyValue) FromString0

func (t *ObjectWithAnyOfPropertyValue) FromString0(v string) error

FromString0 overwrites any union data inside the ObjectWithAnyOfPropertyValue as the provided string.

func (ObjectWithAnyOfPropertyValue) MarshalJSON

func (t ObjectWithAnyOfPropertyValue) MarshalJSON() ([]byte, error)

func (*ObjectWithAnyOfPropertyValue) MergeInt1

func (t *ObjectWithAnyOfPropertyValue) MergeInt1(v int) error

MergeInt1 performs a merge with any union data inside the ObjectWithAnyOfPropertyValue, using the provided int.

func (*ObjectWithAnyOfPropertyValue) MergeString0

func (t *ObjectWithAnyOfPropertyValue) MergeString0(v string) error

MergeString0 performs a merge with any union data inside the ObjectWithAnyOfPropertyValue, using the provided string.

func (*ObjectWithAnyOfPropertyValue) UnmarshalJSON

func (t *ObjectWithAnyOfPropertyValue) UnmarshalJSON(b []byte) error

type ObjectWithOneOfProperty

type ObjectWithOneOfProperty struct {
	Variant *ObjectWithOneOfPropertyVariant `form:"variant,omitempty" json:"variant,omitempty"`
}

#/components/schemas/ObjectWithOneOfProperty

func (*ObjectWithOneOfProperty) ApplyDefaults

func (s *ObjectWithOneOfProperty) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ObjectWithOneOfPropertyVariant

type ObjectWithOneOfPropertyVariant struct {
	// contains filtered or unexported fields
}

func (*ObjectWithOneOfPropertyVariant) ApplyDefaults

func (t *ObjectWithOneOfPropertyVariant) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (ObjectWithOneOfPropertyVariant) AsObjectWithOneOfPropertyVariantOneOf0

func (t ObjectWithOneOfPropertyVariant) AsObjectWithOneOfPropertyVariantOneOf0() (ObjectWithOneOfPropertyVariantOneOf0, error)

AsObjectWithOneOfPropertyVariantOneOf0 returns the union data inside the ObjectWithOneOfPropertyVariant as a ObjectWithOneOfPropertyVariantOneOf0.

func (ObjectWithOneOfPropertyVariant) AsObjectWithOneOfPropertyVariantOneOf1

func (t ObjectWithOneOfPropertyVariant) AsObjectWithOneOfPropertyVariantOneOf1() (ObjectWithOneOfPropertyVariantOneOf1, error)

AsObjectWithOneOfPropertyVariantOneOf1 returns the union data inside the ObjectWithOneOfPropertyVariant as a ObjectWithOneOfPropertyVariantOneOf1.

func (*ObjectWithOneOfPropertyVariant) FromObjectWithOneOfPropertyVariantOneOf0

func (t *ObjectWithOneOfPropertyVariant) FromObjectWithOneOfPropertyVariantOneOf0(v ObjectWithOneOfPropertyVariantOneOf0) error

FromObjectWithOneOfPropertyVariantOneOf0 overwrites any union data inside the ObjectWithOneOfPropertyVariant as the provided ObjectWithOneOfPropertyVariantOneOf0.

func (*ObjectWithOneOfPropertyVariant) FromObjectWithOneOfPropertyVariantOneOf1

func (t *ObjectWithOneOfPropertyVariant) FromObjectWithOneOfPropertyVariantOneOf1(v ObjectWithOneOfPropertyVariantOneOf1) error

FromObjectWithOneOfPropertyVariantOneOf1 overwrites any union data inside the ObjectWithOneOfPropertyVariant as the provided ObjectWithOneOfPropertyVariantOneOf1.

func (ObjectWithOneOfPropertyVariant) MarshalJSON

func (t ObjectWithOneOfPropertyVariant) MarshalJSON() ([]byte, error)

func (*ObjectWithOneOfPropertyVariant) MergeObjectWithOneOfPropertyVariantOneOf0

func (t *ObjectWithOneOfPropertyVariant) MergeObjectWithOneOfPropertyVariantOneOf0(v ObjectWithOneOfPropertyVariantOneOf0) error

MergeObjectWithOneOfPropertyVariantOneOf0 performs a merge with any union data inside the ObjectWithOneOfPropertyVariant, using the provided ObjectWithOneOfPropertyVariantOneOf0.

func (*ObjectWithOneOfPropertyVariant) MergeObjectWithOneOfPropertyVariantOneOf1

func (t *ObjectWithOneOfPropertyVariant) MergeObjectWithOneOfPropertyVariantOneOf1(v ObjectWithOneOfPropertyVariantOneOf1) error

MergeObjectWithOneOfPropertyVariantOneOf1 performs a merge with any union data inside the ObjectWithOneOfPropertyVariant, using the provided ObjectWithOneOfPropertyVariantOneOf1.

func (*ObjectWithOneOfPropertyVariant) UnmarshalJSON

func (t *ObjectWithOneOfPropertyVariant) UnmarshalJSON(b []byte) error

type ObjectWithOneOfPropertyVariantOneOf0

type ObjectWithOneOfPropertyVariantOneOf0 struct {
	Kind *string `form:"kind,omitempty" json:"kind,omitempty"`
	Name *string `form:"name,omitempty" json:"name,omitempty"`
}

#/components/schemas/ObjectWithOneOfProperty/properties/variant/oneOf/0

func (*ObjectWithOneOfPropertyVariantOneOf0) ApplyDefaults

func (s *ObjectWithOneOfPropertyVariantOneOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type ObjectWithOneOfPropertyVariantOneOf1

type ObjectWithOneOfPropertyVariantOneOf1 struct {
	Kind  *string `form:"kind,omitempty" json:"kind,omitempty"`
	Count *int    `form:"count,omitempty" json:"count,omitempty"`
}

#/components/schemas/ObjectWithOneOfProperty/properties/variant/oneOf/1

func (*ObjectWithOneOfPropertyVariantOneOf1) ApplyDefaults

func (s *ObjectWithOneOfPropertyVariantOneOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type Prompt

type Prompt struct {
	// contains filtered or unexported fields
}

func (*Prompt) ApplyDefaults

func (t *Prompt) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

func (Prompt) AsPromptOneOf0

func (t Prompt) AsPromptOneOf0() (PromptOneOf0, error)

AsPromptOneOf0 returns the union data inside the Prompt as a PromptOneOf0.

func (Prompt) AsPromptOneOf1

func (t Prompt) AsPromptOneOf1() (PromptOneOf1, error)

AsPromptOneOf1 returns the union data inside the Prompt as a PromptOneOf1.

func (*Prompt) FromPromptOneOf0

func (t *Prompt) FromPromptOneOf0(v PromptOneOf0) error

FromPromptOneOf0 overwrites any union data inside the Prompt as the provided PromptOneOf0.

func (*Prompt) FromPromptOneOf1

func (t *Prompt) FromPromptOneOf1(v PromptOneOf1) error

FromPromptOneOf1 overwrites any union data inside the Prompt as the provided PromptOneOf1.

func (Prompt) MarshalJSON

func (t Prompt) MarshalJSON() ([]byte, error)

func (*Prompt) MergePromptOneOf0

func (t *Prompt) MergePromptOneOf0(v PromptOneOf0) error

MergePromptOneOf0 performs a merge with any union data inside the Prompt, using the provided PromptOneOf0.

func (*Prompt) MergePromptOneOf1

func (t *Prompt) MergePromptOneOf1(v PromptOneOf1) error

MergePromptOneOf1 performs a merge with any union data inside the Prompt, using the provided PromptOneOf1.

func (*Prompt) UnmarshalJSON

func (t *Prompt) UnmarshalJSON(b []byte) error

type PromptOneOf0

type PromptOneOf0 struct {
	Type    *string       `form:"type,omitempty" json:"type,omitempty"`
	Prompt  []ChatMessage `form:"prompt" json:"prompt"`
	Name    string        `form:"name" json:"name"`
	Version int           `form:"version" json:"version"`
}

#/components/schemas/Prompt/oneOf/0

func (*PromptOneOf0) ApplyDefaults

func (s *PromptOneOf0) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type PromptOneOf0AllOf0Type

type PromptOneOf0AllOf0Type string

#/components/schemas/Prompt/oneOf/0/allOf/0/properties/type

const (
	Chat PromptOneOf0AllOf0Type = "chat"
)

type PromptOneOf1

type PromptOneOf1 struct {
	Type    *string `form:"type,omitempty" json:"type,omitempty"`
	Prompt  string  `form:"prompt" json:"prompt"`
	Name    string  `form:"name" json:"name"`
	Version int     `form:"version" json:"version"`
}

#/components/schemas/Prompt/oneOf/1

func (*PromptOneOf1) ApplyDefaults

func (s *PromptOneOf1) ApplyDefaults()

ApplyDefaults sets default values for fields that are nil.

type PromptOneOf1AllOf0Type

type PromptOneOf1AllOf0Type string

#/components/schemas/Prompt/oneOf/1/allOf/0/properties/type

const (
	Text PromptOneOf1AllOf0Type = "text"
)

type TextPrompt

type TextPrompt struct {
	Prompt  string `form:"prompt" json:"prompt"`
	Name    string `form:"name" json:"name"`
	Version int    `form:"version" json:"version"`
}

#/components/schemas/TextPrompt

func (*TextPrompt) ApplyDefaults

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