parser

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package parser turns API specifications into the internal code generation intermediate representation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Parser

type Parser interface {
	Parse(ctx context.Context, data []byte) (*codegen.Spec, error)
}

Parser converts raw API specification bytes into the shared IR model.

type SwaggerParser

type SwaggerParser struct{}

SwaggerParser parses Swagger 2.0 documents into the shared codegen IR.

func NewSwaggerParser

func NewSwaggerParser() *SwaggerParser

NewSwaggerParser creates a Swagger 2.0 parser instance.

func (*SwaggerParser) Parse

func (p *SwaggerParser) Parse(_ context.Context, data []byte) (*codegen.Spec, error)

Parse converts Swagger 2.0 bytes into the codegen intermediate representation.

Jump to

Keyboard shortcuts

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