package
0.0.0-20170905172749-ee43cbb60db7
Repository: https://github.com/reprezen/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.md", a local copy of the OpenAPI specification with modifications that fix minor inconsistencies and make it easier to read. We hope to have these changes merged into the official document.

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.