Skip to content

Commit 92ed12c

Browse files
fix: simplify YAML anchor pattern in devproxy-errors.yaml (#1569)
Remove the unnecessary `definitions` wrapper and promote YAML anchors to top-level keys. This is more idiomatic anchors are a nativeYAML language feature and don't need a JSON Schema/OpenAPI-style container. Closes #1568 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1b8214d commit 92ed12c

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

DevProxy/devproxy-errors.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,11 @@
44
# It demonstrates YAML features like comments, multiline strings, and anchors.
55

66
# Define reusable error body templates using YAML anchors
7-
definitions:
8-
client_error_body: &client_error_body
9-
message: "Client Error"
7+
client_error_body: &client_error_body
8+
message: "Client Error"
109

11-
server_error_body: &server_error_body
12-
message: "Server Error"
10+
server_error_body: &server_error_body
11+
message: "Server Error"
1312

1413
errors:
1514
- request:

0 commit comments

Comments
 (0)