本文整理了Java中io.swagger.models.Tag.getVendorExtensions()
方法的一些代码示例,展示了Tag.getVendorExtensions()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Tag.getVendorExtensions()
方法的具体详情如下:
包路径:io.swagger.models.Tag
类名称:Tag
方法名:getVendorExtensions
暂无
代码示例来源:origin: apache/servicecomb-java-chassis
private Tag convertTag(io.swagger.annotations.Tag tagAnnotation) {
Tag tag = new Tag();
tag.setName(tagAnnotation.name());
tag.setDescription(tagAnnotation.description());
tag.setExternalDocs(convertExternalDocs(tagAnnotation.externalDocs()));
tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagAnnotation.extensions()));
return tag;
}
代码示例来源:origin: swagger-api/swagger-parser
private List<Tag> convertTags(List<io.swagger.models.Tag> v2tags) {
List<Tag> v3tags = new ArrayList<>();
for (io.swagger.models.Tag v2tag : v2tags) {
Tag v3tag = new Tag();
v3tag.setDescription(v2tag.getDescription());
v3tag.setName(v2tag.getName());
if (v2tag.getExternalDocs() != null) {
v3tag.setExternalDocs(convert(v2tag.getExternalDocs()));
}
Map<String, Object> extensions = convert(v2tag.getVendorExtensions());
if (extensions != null) {
v3tag.setExtensions(extensions);
}
v3tags.add(v3tag);
}
return v3tags;
}
代码示例来源:origin: org.apache.servicecomb/swagger-generator-core
private Tag convertTag(io.swagger.annotations.Tag tagAnnotation) {
Tag tag = new Tag();
tag.setName(tagAnnotation.name());
tag.setDescription(tagAnnotation.description());
tag.setExternalDocs(convertExternalDocs(tagAnnotation.externalDocs()));
tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagAnnotation.extensions()));
return tag;
}
代码示例来源:origin: io.swagger.parser.v3/swagger-parser-v2-converter
private List<Tag> convertTags(List<io.swagger.models.Tag> v2tags) {
List<Tag> v3tags = new ArrayList<>();
for (io.swagger.models.Tag v2tag : v2tags) {
Tag v3tag = new Tag();
v3tag.setDescription(v2tag.getDescription());
v3tag.setName(v2tag.getName());
if (v2tag.getExternalDocs() != null) {
v3tag.setExternalDocs(convert(v2tag.getExternalDocs()));
}
Map<String, Object> extensions = convert(v2tag.getVendorExtensions());
if (extensions != null) {
v3tag.setExtensions(extensions);
}
v3tags.add(v3tag);
}
return v3tags;
}
代码示例来源:origin: org.openapitools.swagger.parser/swagger-parser-v2-converter
private List<Tag> convertTags(List<io.swagger.models.Tag> v2tags) {
List<Tag> v3tags = new ArrayList<>();
for (io.swagger.models.Tag v2tag : v2tags) {
Tag v3tag = new Tag();
v3tag.setDescription(v2tag.getDescription());
v3tag.setName(v2tag.getName());
if (v2tag.getExternalDocs() != null) {
v3tag.setExternalDocs(convert(v2tag.getExternalDocs()));
}
Map<String, Object> extensions = convert(v2tag.getVendorExtensions());
if (extensions != null) {
v3tag.setExtensions(extensions);
}
v3tags.add(v3tag);
}
return v3tags;
}
代码示例来源:origin: wso2/msf4j
tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
代码示例来源:origin: org.wso2.msf4j/msf4j-swagger
tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
代码示例来源:origin: com.reprezen.genflow/genflow-api
return ((ExternalDocs) item).getVendorExtensions();
} else if (item instanceof Tag) {
return ((Tag) item).getVendorExtensions();
} else if (item instanceof SecuritySchemeDefinition) {
return ((SecuritySchemeDefinition) item).getVendorExtensions();
代码示例来源:origin: io.swagger/swagger-jaxrs
tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
代码示例来源:origin: Sayi/swagger-dubbo
tag.getVendorExtensions()
.putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
代码示例来源:origin: noboomu/proteus
tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
代码示例来源:origin: javagossip/dorado
tag.getVendorExtensions().putAll(BaseReaderUtils.parseExtensions(tagConfig.extensions()));
内容来源于网络,如有侵权,请联系作者删除!