Package org.sdase.commons.server.openapi
Class OpenApiFileHelper
java.lang.Object
org.sdase.commons.server.openapi.OpenApiFileHelper
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringnormalizeOpenApiYaml(String yaml) Normalize an textual OpenApi in theyamlformat and remove all environment-specific contents.
-
Method Details
-
normalizeOpenApiYaml
Normalize an textual OpenApi in theyamlformat and remove all environment-specific contents.- Removes the
serverslist that is automatically generated byServerUrlFilterbut disrupts the repeatability in tests where the application run on random ports.
- Parameters:
yaml- the content of theopenapi.yamlfile- Returns:
- the cleaned up
yaml
- Removes the
-