added configuration for swagger-yaml output file, #3597

This commit is contained in:
Tony Tam
2016-08-16 15:59:47 -07:00
parent 7a49f96a03
commit 7bc9c4041b
2 changed files with 21 additions and 10 deletions

View File

@@ -20,6 +20,7 @@ public class SwaggerYamlOptionsProvider implements OptionsProvider {
ImmutableMap.Builder<String, String> builder = new ImmutableMap.Builder<String, String>();
return builder.put(CodegenConstants.SORT_PARAMS_BY_REQUIRED_FLAG, SORT_PARAMS_VALUE)
.put(CodegenConstants.ENSURE_UNIQUE_PARAMS, ENSURE_UNIQUE_PARAMS_VALUE)
.put("outputFile", "swagger.yaml")
.build();
}