From ecbe88a2540648fd6ea2f49ac8cafb6577ab3375 Mon Sep 17 00:00:00 2001 From: waldekmastykarz Date: Sat, 28 Feb 2026 10:40:54 +0100 Subject: [PATCH] fix: simplify YAML anchor pattern in devproxy-errors.yaml 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 dotnet/dev-proxy#1568 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- DevProxy/devproxy-errors.yaml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/DevProxy/devproxy-errors.yaml b/DevProxy/devproxy-errors.yaml index 5ecfa956..8f8647d5 100644 --- a/DevProxy/devproxy-errors.yaml +++ b/DevProxy/devproxy-errors.yaml @@ -4,12 +4,11 @@ # It demonstrates YAML features like comments, multiline strings, and anchors. # Define reusable error body templates using YAML anchors -definitions: - client_error_body: &client_error_body - message: "Client Error" +client_error_body: &client_error_body + message: "Client Error" - server_error_body: &server_error_body - message: "Server Error" +server_error_body: &server_error_body + message: "Server Error" errors: - request: