CodeSquared docs

OasMediaType

OasMediaType is an object representing an OpenAPI media type.

Properties

PropertyTypeDescription
oasType'mediaType'Static value representing the OpenAPI media type.
mediaTypestringThe media type.
schemaOasSchema | OasRef<'schema'> | undefinedOptional OasSchema or reference to it.
examplesRecord<string, OasExample | OasRef<'example'>> | undefinedOptional map of examples for the media type.
extensionFieldsRecord<string, unknown> | undefinedOptional map of custom fields defined by OpenAPI extensions. Keys are strings beginning with x- and values are of any valid JSON type.