/
rustwizard
/
balda
Обзор
Документация
Войти
/
rustwizard
/
balda
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
vendor/github.com/ogen-go/ogen/openapi/api.go
30 строк
712 B
Rust Wizard
use ogen and docs
02 мар 2026, 17:10
Верифицирован
02 мар 2026, 17:10
18d9395
Код
Авторство
О чём код?
// Package openapi represents OpenAPI v3 Specification in Go. package openapi import ( "github.com/ogen-go/ogen/jsonpointer" "github.com/ogen-go/ogen/jsonschema" ) // Ref is a JSON Reference. type Ref = jsonpointer.RefKey // API represents parsed OpenAPI spec. type API struct { Version Version Tags []Tag Servers []Server Operations []*Operation Webhooks []Webhook Components *Components Info Info } // Components represent parsed components of OpenAPI spec. type Components struct { Schemas map[string]*jsonschema.Schema Responses map[string]*Response Parameters map[string]*Parameter Examples map[string]*Example RequestBodies map[string]*RequestBody }