From 8bf59a12f908ab5e2429f801cc9ea0deabb1217a Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Tue, 27 Dec 2022 12:08:28 -0800 Subject: [PATCH] Make sure attributes with $ use _ instead in GraphQL examples $ is reserved so we had to replace all $ with _ --- templates/graphql/docs/example.md.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/graphql/docs/example.md.twig b/templates/graphql/docs/example.md.twig index 1b8a85271..3840ac7fd 100644 --- a/templates/graphql/docs/example.md.twig +++ b/templates/graphql/docs/example.md.twig @@ -58,7 +58,7 @@ mutation { {%~ for definition in spec.definitions %} {%~ if definition.name == method.responseModel %} {%~ for property in definition.properties | filter(p => p.required) %} - {{ property.name | caseCamel }} + {{ property.name | replace({'$': '_'}) }} {%~ endfor %} {%~ if definition.additionalProperties %} data