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

accordproject / concerto / 38764214038
98%

Build:
DEFAULT BRANCH: main
Ran 15 Oct 2026 03:56PM UTC
Jobs 3
Files 87
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

15 Oct 2026 03:52PM UTC coverage: 97.726% (+0.04%) from 97.691%
38764214038

push

github

web-flow
fix(concerto-core): treat relationship-typed map values as relationships (#1567)

* fix(concerto-core): treat relationship-typed map values as relationships

Relationship-typed map values (map M { o String --> P }) were previously
treated as embedded objects rather than relationships across the serializer,
causing fromJSON to reject relationship references/URIs, toJSON to serialize
them as embedded objects, and validation to ignore relationship semantics.

- Add isRelationship, getName, and getFullyQualifiedTypeName to MapValueType
- Validate in MapValueType that relationship targets are identified classes
- Extract processRelationship in JSONPopulator to read relationship map values as Relationships
- Extract processRelationship in JSONGenerator to serialize relationship map values as URIs
- Update checkMapType in ResourceValidator to validate relationship map values via checkRelationship
- Add comprehensive tests for relationship map serialization, deserialization, and introspection

Closes #1563

Signed-off-by: Tushar Singh <tusharsingh222555@gmail.com>

* fix(concerto-core): reject unresolved map value types during validation

Reject unresolved non-primitive map value declarations before checking
whether the declaration is a map or identified type in MapValueType.validate().
Adds unit test coverage verifying IllegalModelException is thrown when
relationship or object map values point to missing types.

Signed-off-by: Tushar Singh <tusharsingh222555@gmail.com>

* test(concerto-core): remove unrelated tests from resourcevalidator

Signed-off-by: Tushar Singh <tusharsingh222555@gmail.com>

* fix(concerto-core): scope map value missing-type validation to relationships

Signed-off-by: Tushar Singh <tusharsingh222555@gmail.com>

---------

Signed-off-by: Tushar Singh <tusharsingh222555@gmail.com>

2366 of 2478 branches covered (95.48%)

Branch coverage included in aggregate %.

61 of 62 new or added lines in 5 files covered. (98.39%)

4252 of 4294 relevant lines covered (99.02%)

126021.99 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
95.35
-4.65% packages/concerto-core/src/introspect/mapkeytype.ts
Jobs
ID Job ID Ran Files Coverage
1 windows-latest - 38764214038.1 15 Oct 2026 03:57PM UTC 174
97.73
GitHub Action Run
2 macos-latest - 38764214038.2 15 Oct 2026 03:56PM UTC 174
97.73
GitHub Action Run
3 ubuntu-latest - 38764214038.3 15 Oct 2026 03:56PM UTC 174
97.73
GitHub Action Run
Source Files on build 38764214038
  • Tree
  • List 87
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #38764214038
  • 7ccda638 on github
  • Prev Build on main (#38747322359)
  • Next Build on main (#38779219420)
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