springfox.documentation.service.StringVendorExtension Java Examples
The following examples show how to use
springfox.documentation.service.StringVendorExtension.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ServiceCombDocumentationSwaggerMapper.java From spring-cloud-huawei with Apache License 2.0 | 5 votes |
private List<Parameter> validateParameter(List<Parameter> parameters) { for (Parameter parameter : parameters) { if ("body".equals(parameter.getParamType()) && "string".equals(parameter.getModelRef().getType())) { // TODO: springfox do not support boolean type and can not add a customization // springfox has long time no release version since 2018.9 and version 2.9.2 // use string type instead parameter.getVendorExtentions().add(new StringVendorExtension(X_RAW_JSON_TYPE, "true")); } } return parameters; }
Example #2
Source File: ApiParamReader.java From swagger-more with Apache License 2.0 | 4 votes |
private List<VendorExtension> buildExtensions(ResolvedType resolvedType) { List<VendorExtension> extensions = Lists.newArrayList(); extensions.add(new StringVendorExtension("className", resolvedType.toString())); return extensions; }