scripts

package
v0.0.17-beta Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateRouteConstants

func GenerateRouteConstants(paths map[string]PathItem) string

func GenerateTypes

func GenerateTypes()

func ToPascalCase

func ToPascalCase(s string) string

Types

type Operation

type Operation struct {
	Summary     string `json:"summary"`
	Description string `json:"description"`
}

type PathItem

type PathItem map[string]Operation

type SwaggerSchema

type SwaggerSchema struct {
	Components struct {
		Schemas map[string]struct {
			Type          string                 `json:"type"`
			Properties    map[string]SwaggerType `json:"properties"`
			Required      []string               `json:"required"`
			Enum          []string               `json:"enum"`
			XEnumVarnames []string               `json:"x-enum-varnames"`
		} `json:"schemas"`
	} `json:"components"`
	Paths map[string]PathItem `json:"paths"`
}

type SwaggerType

type SwaggerType struct {
	Type  string       `json:"type"`
	Ref   string       `json:"$ref"`
	Items *SwaggerType `json:"items"`
}

Jump to

Keyboard shortcuts

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