Class MediaTreeBuilderBaseAbstract

MediaTreeBuilderBase generates HTTP Body information from openapi, add description for all properties and information about AllOf, AnyOf, OneOf. Also It include composition of DescriptionBuilder and can be extended by multiple descriptionBuilder realisations with any variatives.

Hierarchy

Constructors

Properties

_descriptionBuilder: DescriptionBuilder
_options?: IRavageOptions

Methods

  • Generates open bracket and desctiption of open schema block

    Parameters

    Returns Promise<Content>

  • Generates Body tree by OpenAPIV3.ReferenceObject or OpenAPIV3.SchemaObject

    Parameters

    • obj: ReferenceObject | SchemaObject
    • openapi: OpenapiInfoV3
    • Optional prevKey: string
    • Optional required: boolean

    Returns Promise<Content>

  • Get schema by $ref from openapi.components.schemas if it's OpenAPIV3.ReferenceObject or reutrns obj if it's not OpenAPIV3.ReferenceObject

    Parameters

    Returns Promise<SchemaObject>

  • Build Content block for OpenAPI Body schema

    Parameters

    Returns Promise<Content>

Generated using TypeDoc