Skip to content

fix(ack): preserve strict discriminated codec outputs - #243

Open
leoafarias wants to merge 2 commits into
fix/2.0-generator-boundary-integrationfrom
fix/2.0-discriminated-codec-output
Open

leoafarias wants to merge 2 commits into
fix/2.0-generator-boundary-integrationfrom
fix/2.0-discriminated-codec-output

Conversation

@leoafarias

@leoafarias leoafarias commented Oct 27, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A discriminated union could reject its own parsed map when a branch codec had a strict object output: normalization added a discriminator that the output schema did not declare.

  • Allow the matching union-owned key in static object outputs, including wrapped, chained, and anyOf compositions.
  • Preserve authored rules, nested strictness and callbacks. Leave already-permissive intermediate maps unchanged; only final map runtimes receive the union-owned key.

Follow-up to the #229 review finding, stacked on #242.

Validation

  • 2,122 core tests, 67 Chrome cases, strict analysis and formatting passed.
  • 16 new cases cover strict outputs, composition, permissive intermediates, immutability and callbacks; regressions failed before their fixes.
  • Full-workspace CI and release preflight passed on 56a9384, including both minimum SDKs, API compatibility and clean regeneration.

Four live Firebase tests remain skipped.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-27T00:43:39.229972Z 56a9384 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 64b5e52010

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/ack/lib/src/schemas/discriminated_object_schema.dart

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant