openapi

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package openapi implements an ImportResolver that converts OpenAPI 3.x schemas into speclang AST nodes (models and scopes).

It uses kin-openapi for spec parsing and $ref resolution, so the converter stays current with OpenAPI spec evolution without custom maintenance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

type Resolver struct{}

Resolver implements parser.ImportResolver for OpenAPI 3.x specs.

func (*Resolver) Resolve

func (r *Resolver) Resolve(absPath string) ([]*parser.Model, []*parser.Scope, error)

Resolve reads an OpenAPI file and returns speclang models and scopes.

Jump to

Keyboard shortcuts

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