Package org.sdase.commons.server.openapi
Class OpenApiFileHelper
- java.lang.Object
-
- org.sdase.commons.server.openapi.OpenApiFileHelper
-
public class OpenApiFileHelper extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringnormalizeOpenApiYaml(java.lang.String yaml)Normalize an textual OpenApi in theyamlformat and remove all environment-specific contents.
-
-
-
Method Detail
-
normalizeOpenApiYaml
public static java.lang.String normalizeOpenApiYaml(java.lang.String yaml)
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
-
-