@rxap/open-api
Version:
This package provides tools for working with OpenAPI specifications in Angular applications. It includes services for configuring and loading OpenAPI definitions, validating requests and responses against schemas, and handling errors. It also offers utili
16 lines (15 loc) • 541 B
TypeScript
import { Environment } from '@rxap/environment';
export interface OpenApiInitOptions {
/**
* true - load the open api config file from the default url
* default url: openapi.json
*/
load?: {
openApiUrl?: string;
} | boolean;
/**
* The location origin prefix for the open api base urls if the base url is not absolute. defaults to location.origin
*/
origin?: string;
}
export declare function OpenApiInit(environment: Environment, options?: OpenApiInitOptions): Promise<void> | undefined;