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.String
normalizeOpenApiYaml(java.lang.String yaml)
Normalize an textual OpenApi in theyaml
format and remove all environment-specific contents.
-
-
-
Method Detail
-
normalizeOpenApiYaml
public static java.lang.String normalizeOpenApiYaml(java.lang.String yaml)
Normalize an textual OpenApi in theyaml
format and remove all environment-specific contents.- Removes the
servers
list that is automatically generated byServerUrlFilter
but disrupts the repeatability in tests where the application run on random ports.
- Parameters:
yaml
- the content of theopenapi.yaml
file- Returns:
- the cleaned up
yaml
- Removes the
-
-