Skip to content

Commit

Permalink
Renaming all .yml files to .yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
computate committed Mar 9, 2024
1 parent 1d08c3f commit 28c9678
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildNumber.properties
*.p12
*.jceks
.vertx
src/main/fabric8/*.yml
src/main/fabric8/*.yaml
**/*.swp
.niogit*
.index
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions src/main/java/org/computate/vertx/openapi/BaseGenerator.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public static Future<JsonObject> configureConfig(Vertx vertx) {
try {
ConfigRetrieverOptions retrieverOptions = new ConfigRetrieverOptions();

retrieverOptions.addStore(new ConfigStoreOptions().setType("file").setFormat("yaml").setConfig(new JsonObject().put("path", Thread.currentThread().getContextClassLoader().getResource("application.yml").getPath())));
retrieverOptions.addStore(new ConfigStoreOptions().setType("file").setFormat("yaml").setConfig(new JsonObject().put("path", Thread.currentThread().getContextClassLoader().getResource("application.yaml").getPath())));

String configPath = System.getenv(ComputateConfigKeys.CONFIG_PATH);
if(StringUtils.isNotBlank(configPath)) {
Expand Down Expand Up @@ -149,7 +149,7 @@ protected void _apiVersion(Wrap<String> c) {
}

protected void _openApiYamlPath(Wrap<String> c) {
c.o(appPath + "/src/main/resources/webroot/" + ("2.0".equals(apiVersion) ? "swagger2" : "openapi3") + "-enUS.yml");
c.o(appPath + "/src/main/resources/webroot/" + ("2.0".equals(apiVersion) ? "swagger2" : "openapi3") + "-enUS.yaml");
}

protected void _openApiYamlFile(Wrap<File> c) {
Expand All @@ -173,7 +173,7 @@ protected void _sqlDropFile(Wrap<File> c) {
}

protected void _articleYamlPath(Wrap<String> c) {
c.o(appPath + "/src/main/resources/article.yml");
c.o(appPath + "/src/main/resources/article.yaml");
}

protected void _articleYamlFile(Wrap<File> c) {
Expand Down

0 comments on commit 28c9678

Please sign in to comment.