Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(@Configuration() private configuration: Configuration) {}
constructor(
private injectorService: InjectorService,
@Configuration() private settings: Configuration,
private routeService: RouteService
) {
super(injectorService as any, {filter: {type: ProviderType.CONTROLLER}});
}
constructor(
private jsonSchemaService: JsonSchemesService,
@Configuration() private configuration: Configuration,
private converterService: ConverterService
) {
super();
const ajvSettings: IAjvSettings = this.configuration.get("ajv") || {};
this.options = Object.assign(
{
verbose: false
},
ajvSettings.options || {}
);
this.ajv = new Ajv(this.options);
this.errorFormatter = ajvSettings.errorFormat ? ajvSettings.errorFormat : this.defaultFormatter;