@Test public void testWithInterDocumentCrossReferencesAndMarkdown() { Swagger2MarkupConfig config = new Swagger2MarkupConfigBuilder() .withInterDocumentCrossReferences() .withMarkupLanguage(MarkupLanguage.MARKDOWN) .build(); Swagger2MarkupConverter.SwaggerContext context = createContext(config); context.setOutputPath(Paths.get("/tmp")); assertThat(new OperationDocumentResolverDefault(context).apply(operation)) .isEqualTo("paths.md"); }
public String apply(PathOperation operation) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + operationDocumentNameResolver.apply(operation); }
OperationDocumentResolverDefault extends OperationDocumentResolver { public String apply(PathOperation operation) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + operationDocumentNameResolver.apply(operation); } }
OperationDocumentResolverDefault extends OperationDocumentResolver { public String apply(PathOperation operation) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + operationDocumentNameResolver.apply(operation); } OperationDocumentResolverDefault(Swagger2MarkupConverter.SwaggerContext context); }
OperationDocumentResolverDefault extends OperationDocumentResolver { public String apply(PathOperation operation) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + operationDocumentNameResolver.apply(operation); } OperationDocumentResolverDefault(Swagger2MarkupConverter.SwaggerContext context); String apply(PathOperation operation); }
OperationDocumentResolverDefault extends OperationDocumentResolver { public String apply(PathOperation operation) { if (!config.isInterDocumentCrossReferencesEnabled() || context.getOutputPath() == null) return null; else return defaultString(config.getInterDocumentCrossReferencesPrefix()) + operationDocumentNameResolver.apply(operation); } OperationDocumentResolverDefault(Swagger2MarkupConverter.SwaggerContext context); String apply(PathOperation operation);  }