Skip to content

Commit 8bf59a1

Browse files
committed
Make sure attributes with $ use _ instead in GraphQL examples
$ is reserved so we had to replace all $ with _
1 parent 4d35fb0 commit 8bf59a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/graphql/docs/example.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ mutation {
5858
{%~ for definition in spec.definitions %}
5959
{%~ if definition.name == method.responseModel %}
6060
{%~ for property in definition.properties | filter(p => p.required) %}
61-
{{ property.name | caseCamel }}
61+
{{ property.name | replace({'$': '_'}) }}
6262
{%~ endfor %}
6363
{%~ if definition.additionalProperties %}
6464
data

0 commit comments

Comments
 (0)