schema

package
v1.260404.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SchemaCommand

func SchemaCommand() *ffcli.Command

SchemaCommand returns the schema command.

Types

type Endpoint

type Endpoint struct {
	Method            string         `json:"method"`
	Path              string         `json:"path"`
	Parameters        []Parameter    `json:"parameters,omitempty"`
	RequestSchema     string         `json:"requestSchema,omitempty"`
	RequestAttributes map[string]any `json:"requestAttributes,omitempty"`
	ResponseSchema    string         `json:"responseSchema,omitempty"`
}

Endpoint is a compact representation of an API endpoint.

type Parameter

type Parameter struct {
	Name     string   `json:"name"`
	In       string   `json:"in"`
	Enum     []string `json:"enum,omitempty"`
	Required bool     `json:"required,omitempty"`
}

Parameter describes a query/path parameter.

Jump to

Keyboard shortcuts

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