package
0.3.0
Repository: https://github.com/taaraora/gnostic.git
Documentation: pkg.go.dev

# README

OpenAPI 3.0 Schema Generator

This directory contains a support tool that reads (scrapes) the Markdown text specification for OpenAPI 3.0 and builds a corresponding JSON schema.

It also contains "3.0.1.md", a local copy of the OpenAPI specification.

Disclaimer

This does not generate the official OpenAPI 3.0 JSON Schema, which at the time of this commit, does not exist.

# Functions

NewSchemaModel returns a new SchemaModel.
ReadSection reads a section of the OpenAPI Specification, recursively dividing it into subsections.

# Structs

MapType represents a map of a specified type (with string keys).
SchemaModel is a collection of schemas.
SchemaObject describes a schema.
SchemaObjectField describes a field of a schema.
Section models a section of the OpenAPI specification text document.
UnionType represents a union of two types.