Page Contents

Home > @loopback/openapi-spec-builder > BuilderBase

BuilderBase class

Signature:

export declare class BuilderBase<T extends ISpecificationExtension> 

Constructors

Constructor Modifiers Description
[(constructor)(initialSpec)](/doc/en/lb4/apidocs.openapi-spec-builder.builderbase._constructor_.html) Constructs a new instance of the `BuilderBase` class

Properties

Property Modifiers Type Description
[\_spec](/doc/en/lb4/apidocs.openapi-spec-builder.builderbase._spec.html) `protected` T

Methods

Method Modifiers Description
[build()](/doc/en/lb4/apidocs.openapi-spec-builder.builderbase.build.html) Build the spec object.
[withExtension(key, value)](/doc/en/lb4/apidocs.openapi-spec-builder.builderbase.withextension.html) Add a custom (extension) property to the spec object.