parser

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Path   string
	Schema *Schema
}

type MediaType

type MediaType struct {
	Schema *Schema
}

type OpenAPISpec

type OpenAPISpec struct {
	Paths map[string]PathItem
}

type Operation

type Operation struct {
	RequestBody *RequestBody
}

type Parser

type Parser interface {
	ParseSpec(filePath string) (*OpenAPISpec, error)
	GetEndpoint(spec *OpenAPISpec, path string) (*Endpoint, error)
}

func NewParser

func NewParser() Parser

type PathItem

type PathItem struct {
	Post *Operation
}

type RequestBody

type RequestBody struct {
	Content map[string]MediaType
}

type Schema

type Schema struct {
	Type       string
	Properties map[string]*Schema
	Items      *Schema
	Required   []string
	Format     string
	FieldName  string
}

Jump to

Keyboard shortcuts

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