schemaprocessing

package
v1.6.14 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJSONSchema

func ParseJSONSchema(schema []byte) (string, error)

ParseJSONSchema parses the JSON schema and generates Go struct definitions

func ProcessJSONFile

func ProcessJSONFile(filePath string, result interface{}) error

ProcessJSONFile reads a JSON file, decodes it into a Go struct, and returns the result.

Types

type OpenAPI

type OpenAPI struct {
	Openapi    []map[string]interface{} `json:"openapi"`
	Servers    []map[string]interface{} `json:"servers"`
	Security   []map[string]interface{} `json:"security"`
	Paths      []map[string]interface{} `json:"paths"`
	Components []map[string]interface{} `json:"components"`
}

OpenAPI is the top-level struct for the OAS3 standard

Jump to

Keyboard shortcuts

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