Repository navigation
fix(release): give discriminator-mapped variant models an IR scope - #292
Merged
Merged
Conversation
Variant models that appear only in a discriminator mapping (the RadarDetectionEvidence and nested Radar details unions) had no IR owner, so their changelog entry fell to the sdk fallback and failed --strict-scopes in sdk-validation.
Contributor
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
Original prompt from kevin.ferri
|
kevinferri
marked this pull request as ready for review
November 23, 2026 20:18
Contributor
[Medium impact] The PR appears safe to merge. Summary
Reviews (1) · Last reviewed commit: "Give discriminator-mapped variant models..." · Reviewed by Greptile |
gjtorikian
approved these changes
Nov 23, 2026
gjtorikian
deleted the
devin/1795462289-radar-evidence-changelog-scope
branch
November 23, 2026 21:46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The required
sdk-validationcheck fails on the Radar spec syncs (#290, #291) with:Those are the variant models of
RadarDetectionEvidenceand the nestedRadarDetectionRestrictionDetails/RadarDetectionRepeatSignUpDetailsunions. In the IR they appear only inmodel.discriminator.mapping, never as a field, sobuildIndexes'scollectModelClosurenever reached them fromRadar.findand they had no IR owner. Their names don't contain "Radar", soscopeFromNamefalls back tosdktoo.collectModelClosurenow also follows discriminator mapping targets:This fixes the general case (any
allOf+oneOf+ mapping union reached from an operation) instead of adding Radar-specific name rules for generic names likeSignUp.Verified by replaying the CI scope check locally against #291's spec (
oagen diff/parse/resolve+sdk-release-metadata.mjs --strict-scopes, no compat reports): it failed before, and now passes with the entry scoped toradar("Add radar operations and models"). The new regression test fails without the change.npm test: 174 pass.Link to Devin session: https://app.devin.ai/sessions/178b0d721a854a99a9840bf30178f437
Open in Devin Desktop: https://app.devin.ai/desktop/session/178b0d721a854a99a9840bf30178f437?variant=devin
Requested by: @kevinferri
🟢 Devin Review found nothing to fix · View findings