Exemplo n.º 1
0
        public SchemasOpenApiGenerator(IEnumerable <IDocumentProcessor> documentProcessors)
        {
            settings.ConfigureSchemaSettings();

            foreach (var processor in documentProcessors)
            {
                settings.DocumentProcessors.Add(processor);
            }
        }
Exemplo n.º 2
0
        public SchemasOpenApiGenerator(IOptions <UrlsOptions> urlOptions, IEnumerable <IDocumentProcessor> documentProcessors)
        {
            this.urlOptions = urlOptions.Value;

            settings.ConfigureSchemaSettings();

            foreach (var processor in documentProcessors)
            {
                settings.DocumentProcessors.Add(processor);
            }
        }
Exemplo n.º 3
0
        public SchemasOpenApiGenerator(IEnumerable <IDocumentProcessor> documentProcessors, IRequestCache requestCache)
        {
            settings.ConfigureSchemaSettings();

            foreach (var processor in documentProcessors)
            {
                settings.DocumentProcessors.Add(processor);
            }

            this.requestCache = requestCache;
        }