Skip to content

Commit

Permalink
Make sure attributes with $ use _ instead in GraphQL examples
Browse files Browse the repository at this point in the history
$ is reserved so we had to replace all $ with _
  • Loading branch information
stnguyen90 committed Dec 27, 2022
1 parent 4d35fb0 commit 8bf59a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/graphql/docs/example.md.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bf59a1

Please sign in to comment.