Torngen.Spec (Torngen v0.1.5)
View SourceAn intermediate representation of the Torn API OpenAPI specification.
Summary
Functions
Parse the decoded OpenAPI specification into this intermediate representation.
Types
@type t() :: %Torngen.Spec{ api_description: String.t() | nil, api_name: String.t() | nil, api_servers: [String.t()], api_version: String.t() | nil, open_api_version: String.t() | nil, parameters: [Torngen.Spec.Parameter.t()], paths: [Torngen.Spec.Path.t()], schemas: [Torngen.Spec.Schema.schema_types()] }
The internal representation of the OpenAPI specification.
This IR will be utilized when performing the code generation while remaining language-agnostic.
Fields
open_api_version: The OpenAPI specification versionapi_servers: List of base URIs for the APIapi_name: Name of the APIapi_description: Description for the APIapi_version: Semver API versioningparameters: Parsed API parameterspaths: Parsed API pathsschemas: Parsed API response schemas