Skip to content

Commit

Permalink
Use {variable} syntax.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Jan 11, 2024
1 parent de6c3f7 commit 5e7b87e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

- match: { paths./_plugins/api.get: {} }

- match: { paths./:index/_upgrade.post: {} }
- match: { paths./:index/_upgrade.get: {} }
- match: { "paths./{index}/_upgrade.post": {} }
- match: { "paths./{index}/_upgrade.get": {} }
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws

while (all.hasNext()) {
MethodHandlers handlers = all.next();
builder.startObject(handlers.getPath().replace("{", ":").replace("}", ""));
builder.startObject(handlers.getPath());

Check warning on line 584 in server/src/main/java/org/opensearch/rest/RestController.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/rest/RestController.java#L583-L584

Added lines #L583 - L584 were not covered by tests
for (RestRequest.Method method : handlers.getValidMethods()) {
builder.startObject(method.name().toLowerCase(Locale.ROOT))

Check warning on line 586 in server/src/main/java/org/opensearch/rest/RestController.java

View check run for this annotation

Codecov / codecov/patch

server/src/main/java/org/opensearch/rest/RestController.java#L586

Added line #L586 was not covered by tests
// .field("summary", "")
Expand Down

0 comments on commit 5e7b87e

Please sign in to comment.