fluid-oas
    Preparing search index...

    Interface OpenApiV3_1

    Root OpenAPI Object. Allows for method chaining to build a single API Specification.

    interface OpenApiV3_1 {
        addComponents(components: OpenApiComponent): this;
        addExtensions(mappings: { [key: `x-${string}`]: OpenApiSchema }): this;
        addExternalDocs(docs: OpenApiDocumentation): this;
        addInfo(info: OpenApiInfo): this;
        addJsonSchemaDialect(jsonDialect: string): this;
        addOpenApiVersion(version: string): this;
        addPaths(path: OpenApiPath): this;
        addSecurity(security: OpenApiSecurityRequirement[]): this;
        addServers(servers: OpenApiServer[]): this;
        addTags(tags: OpenApiTag[]): this;
        addWebhooks(mappings: { [key: string]: OpenApiPathItem }): this;
        override(overrideVal: unknown): this;
        toJSON(): unknown;
        writeOASASync(filePath?: string): void;
        writeOASSync(filePath?: string): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Overrides the toJSON method for a custom serialization.

      WARNING: overrideVal must be serializable and future changes are subject to breaking.

      Parameters

      • overrideVal: unknown

        Overrides the serialization of this object into this value.

      Returns this

    • Writes the OpenAPI specification asynchronously to a file or outputs it.

      Parameters

      • OptionalfilePath: string

        Optional file path where the specification should be written

      Returns void

    • Writes the OpenAPI specification synchronously to a file or outputs it.

      Parameters

      • OptionalfilePath: string

        Optional file path where the specification should be written

      Returns void