Skip to content
@archipel/platform-openapi Auto-generated

@pixel-brewery/archipel-platform-openapi ​

Classes ​

ClassDescription
SwaggerFeatureDiscoveryCentralizes the discovery of Swagger features declared across backend modules.
SwaggerFeatureRegistryRegistry service for dynamically discovered Swagger features. Collects feature configurations from @SwaggerFeature decorators.
SwaggerMultiDocumentService-
SwaggerThemeThe swagger theme class

Interfaces ​

InterfaceDescription
ICreateJsonSchemaFromOpenApiModelOptionsControls conversion of a NestJS Swagger model into self-contained JSON Schema.
IFeatureSwaggerConfig-
IOpenApiFeatureDocumentOne generated feature document together with its registered feature metadata.
ISwaggerFeatureMetadataDescribes a single Swagger feature module that should be exposed as its own OpenAPI document via the multi-document setup.
ISwaggerThemeConfigConfiguration interface for Swagger theme styling. Allows customization of primary and secondary branding colors.

Variables ​

VariableDescription
APP_VERSIONApplication version shown in the Swagger document.
JSON_SCHEMA_FINGERPRINT_ALGORITHMStable identifier for the validation-semantic JSON Schema fingerprint.
PLATFORM_OPENAPI_CONFIG_ENTRIESAll configuration entries required by platform-openapi.
SWAGGER_CONTACT_EMAILContact e-mail displayed in the Swagger document.
SWAGGER_CONTACT_NAMEContact name displayed in the Swagger document.
SWAGGER_CONTACT_URLContact URL displayed in the Swagger document.
SWAGGER_FEATURE_METADATA_KEYMetadata key used by Reflect.defineMetadata to attach ISwaggerFeatureMetadata to a NestJS module class decorated with SwaggerFeature.

Functions ​

FunctionDescription
ApiComposite Swagger decorator that wraps all NestJS OpenAPI decorators into a single declaration.
createJsonSchemaFingerprintCreates a versioned, stable SHA-256 fingerprint for a JSON Schema document.
createJsonSchemaFromOpenApiModelCreates a self-contained JSON Schema from a NestJS Swagger model.
getRegisteredSwaggerFeaturesReturns all ISwaggerFeatureMetadata entries that have been registered via the SwaggerFeature decorator, sorted alphabetically by name.
getSwaggerFeatureMetadataReads the ISwaggerFeatureMetadata previously attached to a module class by the SwaggerFeature decorator.
SwaggerFeatureClass decorator that marks a NestJS module as a Swagger feature.

Released under the MIT License.