Skip to content

Latest commit

 

History

History
144 lines (89 loc) · 4.63 KB

openapi.md

File metadata and controls

144 lines (89 loc) · 4.63 KB

api-typescript-generator / Modules / openapi

Module: openapi

Table of contents

Interfaces

Type Aliases

Variables

Type Aliases

OpenApiFormats

Ƭ OpenApiFormats: "int32" | "int64" | "float" | "double" | "byte" | "binary" | "date" | "date-time" | "password" | "email"

Available JSON Schema formats.


OpenApiHeader

Ƭ OpenApiHeader: Omit<OpenApiParameter, "name" | "in">

OpenAPI Header Object.


OpenApiHttpMethod

Ƭ OpenApiHttpMethod: typeof openApiHttpMethods[number]

OpenAPI HTTP method.


OpenApiParameterIn

Ƭ OpenApiParameterIn: "query" | "header" | "path" | "cookie"

Parameter locations.


OpenApiParameterStyle

Ƭ OpenApiParameterStyle: "matrix" | "label" | "form" | "simple" | "spaceDelimited" | "pipeDelimited" | "deepObject"

The type of serialization to use for the parameter.


OpenApiPathItem

Ƭ OpenApiPathItem: { description?: string ; parameters?: OpenApiParameter[] ; servers?: OpenApiServer[] ; summary?: string } & { [K in OpenApiHttpMethod]?: OpenApiOperation }

Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.

See

https://swagger.io/specification/#path-item-object


OpenApiPaths

Ƭ OpenApiPaths: Record<string, OpenApiPathItem>

Holds the relative paths to the individual endpoints and their operations. The path is appended to the URL from the Server Object in order to construct the full URL. The Paths MAY be empty, due to Access Control List (ACL) constraints.

See

https://swagger.io/specification/#paths-object


OpenApiPrimitiveTypes

Ƭ OpenApiPrimitiveTypes: "null" | "number" | "integer" | "string" | "boolean"

JSON Schema primitive types.


OpenApiSchema

Ƭ OpenApiSchema: boolean | OpenApiExpandedSchema

The OpenAPI schema.


OpenApiSchemaPrimitiveValue

Ƭ OpenApiSchemaPrimitiveValue: string | number | boolean | null

Variables

openApiHttpMethods

Const openApiHttpMethods: readonly ["get", "put", "post", "delete", "options", "head", "patch", "trace"]

List of HTTP methods defined by OpenAPI.