io.swagger.v3.oas.models.OpenAPI.getExternalDocs()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(170)

本文整理了Java中io.swagger.v3.oas.models.OpenAPI.getExternalDocs()方法的一些代码示例,展示了OpenAPI.getExternalDocs()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OpenAPI.getExternalDocs()方法的具体详情如下:
包路径:io.swagger.v3.oas.models.OpenAPI
类名称:OpenAPI
方法名:getExternalDocs

OpenAPI.getExternalDocs介绍

[英]returns the externalDocs property from a OpenAPI instance.
[中]从OpenAPI实例返回externalDocs属性。

代码示例

代码示例来源:origin: swagger-api/swagger-core

clone.openapi(filteredOpenAPI.getOpenapi());
clone.setExtensions(openAPI.getExtensions());
clone.setExternalDocs(openAPI.getExternalDocs());
clone.setSecurity(openAPI.getSecurity());
clone.setServers(openAPI.getServers());

代码示例来源:origin: com.atlassian.swagger/atlassian-swagger-doclet

public ExternalDocumentation externalDocs() {
    if (openAPI().getExternalDocs() == null) {
      openAPI().setExternalDocs(new ExternalDocumentation());
    }
    return openAPI().getExternalDocs();
  }
}

代码示例来源:origin: org.openapitools/openapi-generator

if (openAPI.getExternalDocs() != null) {
  bundle.put("externalDocs", openAPI.getExternalDocs());

代码示例来源:origin: org.openapitools/openapi-generator

gen.writeObjectField("info", value.getInfo());
if(value.getExternalDocs() != null) {
  gen.writeObjectField("externalDocs", value.getExternalDocs());

代码示例来源:origin: apache/cxf

if (!Objects.equals(configuration.getOpenAPI().getExternalDocs(), oas.getExternalDocs())) {
  configuration.getOpenAPI().setExternalDocs(oas.getExternalDocs());

代码示例来源:origin: org.apache.cxf/cxf-rt-rs-service-description-openapi-v3

if (!Objects.equals(configuration.getOpenAPI().getExternalDocs(), oas.getExternalDocs())) {
  configuration.getOpenAPI().setExternalDocs(oas.getExternalDocs());

代码示例来源:origin: org.ballerinalang/swagger-to-ballerina-generator

/**
 * Build a {@link BallerinaOpenApi} object from a {@link OpenAPI} object.
 * All non iterable objects using handlebars library is converted into
 * supported iterable object types.
 *
 * @param openAPI {@link OpenAPI} type object to be converted
 * @return Converted {@link BallerinaOpenApi} object
 * @throws BallerinaOpenApiException when OpenAPI to BallerinaOpenApi parsing failed
 */
@Override
public BallerinaOpenApi buildContext(OpenAPI openAPI) throws BallerinaOpenApiException {
  this.openapi = openAPI.getOpenapi();
  this.info = openAPI.getInfo();
  this.externalDocs = openAPI.getExternalDocs();
  this.tags = openAPI.getTags();
  this.components = openAPI.getComponents();
  this.extensions = openAPI.getExtensions();
  setPaths(openAPI);
  setSecurityRequirements(openAPI);
  setServers(openAPI);
  setSchemas(openAPI);
  return this;
}

代码示例来源:origin: io.swagger.core.v3/swagger-core

clone.openapi(filteredOpenAPI.getOpenapi());
clone.setExtensions(openAPI.getExtensions());
clone.setExternalDocs(openAPI.getExternalDocs());
clone.setSecurity(openAPI.getSecurity());
clone.setServers(openAPI.getServers());

代码示例来源:origin: org.tomitribe/swagger2markup

buildExternalDocsSection(markupDocBuilder, swagger.getExternalDocs());
applyOverviewDocumentExtension(new Context(Position.DOCUMENT_END, markupDocBuilder));
applyOverviewDocumentExtension(new Context(Position.DOCUMENT_AFTER, markupDocBuilder));

相关文章