private Map<String, Tag> scanClasspathForTags() { Map<String, Tag> tags = new HashMap<>(); for (Class<?> aClass: new Reflections("").getTypesAnnotatedWith(SwaggerDefinition.class)) { SwaggerDefinition swaggerDefinition = AnnotationUtils.findAnnotation(aClass, SwaggerDefinition.class); for (io.swagger.annotations.Tag tag : swaggerDefinition.tags()) { String tagName = tag.name(); if (!tagName.isEmpty()) { tags.put(tag.name(), new Tag().name(tag.name()).description(tag.description())); } } } return tags; }
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; }
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; }
Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description());
Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description());
final Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description());
Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description());
Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description());
Tag tag = new Tag(); tag.setName(tagConfig.name()); tag.setDescription(tagConfig.description());