Options
All
  • Public
  • Public/Protected
  • All
Menu

BETA! Provides methods for OAS 3.0 processing

Hierarchy

  • oas30

Index

Methods

Static generateFile

  • BETA! Generates file with OAS 3.0 JSON content.

    Parameters

    • model: WebApiBaseUnit

      Parsed WebApi Model to generate content from.

    • url: string

      Path to the generated file.

    Returns Promise<void>

Static generateString

  • BETA! Generates string with OAS 3.0 JSON content.

    Parameters

    Returns Promise<string>

    Generated string.

Static generateYamlFile

  • BETA! Generates file with OAS 3.0 YAML content.

    Parameters

    • model: WebApiBaseUnit

      Parsed WebApi Model to generate content from.

    • url: string

      Path to the generated file.

    Returns Promise<void>

Static generateYamlString

  • BETA! Generates string with OAS 3.0 YAML content.

    Parameters

    Returns Promise<string>

    Generated string.

Static parse

  • BETA! Parses OAS 3.0 JSON content from string or url.

    Parameters

    • urlOrContent: string

      File url/path or content string.

    Returns Promise<WebApiBaseUnit>

    Parsed WebApi Model.

  • BETA! Parses OAS 3.0 JSON content from string with a custom API Doc location.

    Parameters

    • content: string

      Content string to be parsed.

    • baseUrl: string

      Location to assign to a doc parsed from a content string. References are resolved relative to this location.

    Returns Promise<WebApiBaseUnit>

    Parsed WebApi Model (future).

Static parseYaml

  • BETA! Parses OAS 3.0 YAML content from string or url.

    Parameters

    • urlOrContent: string

      File url/path or content string.

    Returns Promise<WebApiBaseUnit>

    Parsed WebApi Model.

  • BETA! Parses OAS 3.0 YAML content from string with a custom API Doc location.

    Parameters

    • content: string

      Content string to be parsed.

    • baseUrl: string

      Location to assign to a doc parsed from a content string. References are resolved relative to this location.

    Returns Promise<WebApiBaseUnit>

    Parsed WebApi Model (future).

Static resolve

  • BETA! Resolves parsed OAS 3.0 model.

    Resolution process includes resolving references to all types, libraries, etc.

    Parameters

    Returns Promise<WebApiBaseUnit>

    Resolved parsed WebApi Model.

Static validate

  • BETA! Validates parsed OAS 3.0 model.

    Parameters

    Returns Promise<ValidationReport>

    Validation report.

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc