media

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Implementation

type Implementation struct {
	Type          reflect.Type
	Example       *shared.Json
	Examples      *map[string]example.Example
	PublicNameKey string
}

User-provided metadata containing information on the implementation to be converted to OpenAPI spec.

type Type

type Type struct {
	Schema   *schema.Schema              `json:"schema,omitempty"`
	Example  *shared.Json                `json:"example,omitempty"`
	Examples *map[string]example.Example `json:"examples,omitempty"`
}

func FromBody

func FromBody(body reflect.Type, publicNameKey string) (Type, error)

func FromImplementation

func FromImplementation(impl Implementation) (Type, error)

Jump to

Keyboard shortcuts

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