Module spec

Module spec 

Source
Expand description

Structures used in parsing and navigating OpenAPI specifications.

High-level structures include Spec, Components & Schema.

Structs§

AuthorizationCodeFlow
Configuration details for a authorization code OAuth Flow.
BooleanSchema
A boolean JSON schema.
Callback
Map of possible out-of band callbacks related to the parent operation.
ClientCredentialsFlow
Configuration details for a client credentials OAuth Flow.
Components
Holds a set of reusable objects for different aspects of the OAS.
Contact
Contact information for the exposed API.
Discriminator
A discriminator object can be used to aid in serialization, deserialization, and validation when payloads may be one of a number of different schemas.
Encoding
A single encoding definition applied to a single schema property.
Example
Multi-purpose example objects.
ExternalDoc
Allows referencing an external resource for extended documentation.
Flows
Allows configuration of the supported OAuth Flows.
Header
Describes a single header for HTTP responses and for individual parts in multipart representations.
ImplicitFlow
Configuration details for a implicit OAuth Flow.
Info
General information about the API.
InvalidEmail
Error raised when contact info contains an email field which is not a valid email.
License
License information for the exposed API.
MediaType
Each Media Type Object provides schema and examples for the media type identified by its key.
ObjectSchema
A schema object allows the definition of input and output data types.
Operation
Describes a single API operation on a path.
Parameter
Describes a single operation parameter.
PasswordFlow
Configuration details for a password OAuth Flow.
PathItem
Describes the operations available on a single path.
Ref
Parsed reference path.
RequestBody
Describes a single request body.
Response
Describes a single response from an API Operation, including design-time, static links to operations based on the response.
SecurityRequirement
Lists the required security schemes to execute this operation.
Server
An object representing a Server.
ServerVariable
An object representing a Server Variable for server URL template substitution.
Spec
A complete OpenAPI specification.
Tag
Adds metadata to a single tag that is used by the Operation Object.

Enums§

Error
Spec errors.
Link
The Link object represents a possible design-time link for a response.
MediaTypeExamples
Examples for a media type.
ObjectOrReference
Container for a type of OpenAPI object, or a reference to one.
ParameterIn
Parameter location.
ParameterStyle
Parameter style.
RefError
Object reference error.
RefType
Component type of a reference.
Schema
A JSON schema document.
SchemaError
Schema errors.
SchemaType
Single schema type.
SchemaTypeSet
Set of schema types.
SecurityScheme
Defines a security scheme that can be used by the operations.

Traits§

FromRef
Find an object from a reference path ($ref).