protected void resetReader() { if (providedOpenApiReader == null) { try { openApiReader = buildReader(ContextUtils.deepCopy(openApiConfiguration)); } catch (Exception e) { LOGGER.error("error building reader: " + e.getMessage(), e); // keep previous reader } } }
@Override public void setConfiguration(OpenAPIConfiguration openApiConfiguration) { if (openApiConfiguration != null) { this.config = ContextUtils.deepCopy(openApiConfiguration); if (openApiConfiguration.getOpenAPI() != null) { this.openAPI = this.config.getOpenAPI(); if (this.openAPI.getComponents() != null) { this.components = this.openAPI.getComponents(); } } } }
openApiReader = buildReader(ContextUtils.deepCopy(openApiConfiguration)); openApiScanner = buildScanner(ContextUtils.deepCopy(openApiConfiguration)); objectMapperProcessor = buildObjectMapperProcessor(ContextUtils.deepCopy(openApiConfiguration)); modelConverters = buildModelConverters(ContextUtils.deepCopy(openApiConfiguration));
merged = (SwaggerConfiguration) config; } else { merged = (SwaggerConfiguration) ContextUtils.deepCopy(config);
protected void resetReader() { if (providedOpenApiReader == null) { try { openApiReader = buildReader(ContextUtils.deepCopy(openApiConfiguration)); } catch (Exception e) { LOGGER.error("error building reader: " + e.getMessage(), e); // keep previous reader } } }
@Override public void setConfiguration(OpenAPIConfiguration openApiConfiguration) { if (openApiConfiguration != null) { this.config = ContextUtils.deepCopy(openApiConfiguration); if (openApiConfiguration.getOpenAPI() != null) { this.openAPI = this.config.getOpenAPI(); if (this.openAPI.getComponents() != null) { this.components = this.openAPI.getComponents(); } } } }
openApiReader = buildReader(ContextUtils.deepCopy(openApiConfiguration)); openApiScanner = buildScanner(ContextUtils.deepCopy(openApiConfiguration)); objectMapperProcessor = buildObjectMapperProcessor(ContextUtils.deepCopy(openApiConfiguration)); modelConverters = buildModelConverters(ContextUtils.deepCopy(openApiConfiguration));
merged = (SwaggerConfiguration) config; } else { merged = (SwaggerConfiguration) ContextUtils.deepCopy(config);