decoder

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deserialize

func Deserialize(v any, r io.Reader, format SerializationFormat) error

Deserialize handles deserialization.

Types

type OpenAPISpec

type OpenAPISpec struct {
	Definitions map[string]SchemaObject `yaml:"definitions"`
}

OpenAPISpec represents the structure of an OpenAPI specification.

type SchemaObject

type SchemaObject struct {
	Properties map[string]struct{} `yaml:"properties"`
}

SchemaObject represents a schema definition in OpenAPI.

type SerializationFormat

type SerializationFormat int

SerializationFormat represents the format for serialization/deserialization.

const (
	JSON SerializationFormat = iota
	YAML
)

Jump to

Keyboard shortcuts

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