codegen

package
v0.0.0-...-e0086ea Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCode

func GenerateCode(openapiPath string)

Types

type Component

type Component struct {
	Name   string
	Fields map[string]string
}

type Endpoint

type Endpoint struct {
	Path        string
	Method      string
	OperationID string
	Params      []Parameter
	Body        *RequestBody
	State       int
	Response    *RequestBody // Add this field to handle response
}

type OpenAPIStructs

type OpenAPIStructs struct {
	Endpoints  map[string][]Endpoint
	Components []Component
}

type Parameter

type Parameter struct {
	Name string
	Type string
	Tag  string
}

type RequestBody

type RequestBody struct {
	Name   string
	Fields map[string]string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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