• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

accordproject / concerto-codegen / 43468186110
98%

Build:
DEFAULT BRANCH: main
Ran 13 Nov 2026 05:00PM UTC
Jobs 3
Files 30
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Nov 2026 04:59PM UTC coverage: 98.192%. Remained the same
43468186110

push

github

web-flow
fix(graphql): escape every $ in names, including enum values, relationships and maps (#303)

* fix(graphql): escape every $ in names, including enum values, relationships and maps

GraphQL names cannot contain $, and toGraphQLName() exists to replace it,
but it was not applied consistently, so the generated SDL was rejected by
graphql-js ("Expected Name, found "$"") for models with $ in their names:

- toGraphQLName() used replace('$', '_'), which only replaces the first $
- enum values were written without toGraphQLName()
- relationship names were written without toGraphQLName()
- map names, and the key and value types of maps that are not primitive,
  were written without toGraphQLName(), so they also no longer matched
  the escaped name used by the fields that refer to them

Replace every $ and apply toGraphQLName() to those names. The test builds
the SDL for a model that uses $ in each kind of name and checks it with
graphql-js buildSchema.

Closes #302

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Aaryan Pawar <pawararyan989@gmail.com>

* test(graphql): cover the escaping of non-primitive map key and value types

The regression test for names with $ used String as the key and the value
of its map, so the toGraphQLName() calls added to visitMapDeclaration() for
non-primitive key and value types never ran: reverting either of them did
not fail any test.

Use a declared type with $ in its name as the value of the map in the model
that is validated with graphql-js, and add a test for a scalar key. The
latter only checks the emitted lines, because scalar declarations are not
written yet (#248), so graphql-js would reject the SDL for that other reason.

Both calls were reverted in turn to check that the tests now fail.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Aaryan Pawar <pawararyan989@gmail.com>

---------

Signed-off-by: Aaryan Pawar <pawararyan989@gmail.com>
Co-authored-by: Claude Sonnet ... (continued)

1738 of 1809 branches covered (96.08%)

Branch coverage included in aggregate %.

6 of 6 new or added lines in 1 file covered. (100.0%)

3258 of 3279 relevant lines covered (99.36%)

9919.52 hits per line

Jobs
ID Job ID Ran Files Coverage
1 macOS-latest - 43468186110.1 13 Nov 2026 05:06PM UTC 30
98.19
GitHub Action Run
2 ubuntu-latest - 43468186110.2 13 Nov 2026 05:00PM UTC 30
98.19
GitHub Action Run
3 windows-latest - 43468186110.3 13 Nov 2026 05:02PM UTC 30
98.19
GitHub Action Run
Source Files on build 43468186110
  • Tree
  • List 30
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #43468186110
  • feaee71d on github
  • Prev Build on main (#43405730600)
  • Next Build on main (#43472505952)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc