mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
CE-1887 rename method generate to generateOpenAPIModel
This commit is contained in:
@ -159,7 +159,7 @@ public class QMiddlewareApiSpecHandler
|
||||
{
|
||||
try
|
||||
{
|
||||
OpenAPI openAPI = new MiddlewareVersionV1().generate(basePath);
|
||||
OpenAPI openAPI = new MiddlewareVersionV1().generateOpenAPIModel(basePath);
|
||||
context.contentType(ContentType.APPLICATION_YAML);
|
||||
context.result(YamlUtils.toYaml(openAPI));
|
||||
}
|
||||
@ -178,7 +178,7 @@ public class QMiddlewareApiSpecHandler
|
||||
{
|
||||
try
|
||||
{
|
||||
OpenAPI openAPI = new MiddlewareVersionV1().generate(basePath);
|
||||
OpenAPI openAPI = new MiddlewareVersionV1().generateOpenAPIModel(basePath);
|
||||
context.contentType(ContentType.APPLICATION_JSON);
|
||||
context.result(JsonUtils.toJson(openAPI));
|
||||
}
|
||||
@ -246,7 +246,7 @@ public class QMiddlewareApiSpecHandler
|
||||
throw (new QUserFacingException("Unrecognized version: " + version));
|
||||
}
|
||||
|
||||
OpenAPI openAPI = middlewareSpec.get().generate(basePath);
|
||||
OpenAPI openAPI = middlewareSpec.get().generateOpenAPIModel(basePath);
|
||||
html = html.replace("{title}", openAPI.getInfo().getTitle() + " - " + version);
|
||||
|
||||
StringBuilder otherVersionOptions = new StringBuilder();
|
||||
|
@ -103,7 +103,7 @@ public class PublishAPI implements Callable<Integer>
|
||||
// build the openapi spec - then run it through a "grouping" function, which will make several //
|
||||
// subsets of it (e.g., grouped by table mostly) - then we'll write out each such file //
|
||||
/////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
OpenAPI openAPI = middlewareVersion.generate("qqq");
|
||||
OpenAPI openAPI = middlewareVersion.generateOpenAPIModel("qqq");
|
||||
String yaml = YamlUtils.toYaml(openAPI, mapper ->
|
||||
{
|
||||
if(sortFileContentsForHuman)
|
||||
|
@ -111,7 +111,7 @@ public class ValidateAPIVersions implements Callable<Integer>
|
||||
///////////////////////////////////////////////////////////
|
||||
// generate a new spec based on current code in codebase //
|
||||
///////////////////////////////////////////////////////////
|
||||
OpenAPI openAPI = middlewareVersion.generate("qqq");
|
||||
OpenAPI openAPI = middlewareVersion.generateOpenAPIModel("qqq");
|
||||
String yaml = YamlUtils.toYaml(openAPI, mapper ->
|
||||
{
|
||||
mapper.configure(MapperFeature.SORT_PROPERTIES_ALPHABETICALLY, true);
|
||||
|
Reference in New Issue
Block a user