Skip to content

Align JSON Schema import, export, and format behavior - #271

Merged
leoafarias merged 87 commits into
mainfrom
release-readiness/d-json-schema
Dec 2, 2026
Merged

leoafarias merged 87 commits into
mainfrom
release-readiness/d-json-schema

Conversation

@leoafarias

@leoafarias leoafarias commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

Draft-7 imports report unsupported dependencies, and Draft-7 export preserves format annotations while reporting asserted formats with their JSON Pointers. Email, date, and international hostname validation now use consistent rules. The adapters expose optional Unicode normalization. Schema models report nested warnings with their paths and render nullable raw schemas without a resource ID.

The importer reference-cycle item is tracked separately as an error-handling follow-up.

Dart 3.14.0 passed the 2,961-test core suite, 53 adapter tests, 65 generator library tests, and strict analysis of the changed packages. The IDNA parity cases also agreed on the VM and dart2js.


Open workspace in Conductor

Release-readiness item D5. Use the default for Q14.
Release-readiness item E1. Use the default for Q1.
Release readiness E1 and decision Q2.
Release readiness E2 and decision Q12.
Release readiness E3.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-01T22:42:01.873637Z b84cc40 New commits
🔒 Security Review ✅ Completed 2026-12-01T22:43:47.411156Z b84cc40 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: b77b54e995

ℹ️ 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".

in properties?.entries ??
const <MapEntry<String, AckSchemaModel>>[]) {
final key = escapeJsonPointerToken(entry.key);
yield* entry.value._warningsAt('$path/properties/$key');

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Account for nullable wrappers in descendant warning paths

When a model is nullable, finishTypeJson() places its properties or items under anyOf[0], but this traversal still appends them directly to the current path. For example, Ack.object({'x': Ack.any()}).nullable().toSchemaModel().allWarnings reports #/properties/x, although the exported schema contains that node at #/anyOf/0/properties/x. Nullable compositions have the same mismatch with finishCompositionJson(). Include the nullable wrapper in descendant paths so the advertised JSON Pointers resolve against the exported schema.

Useful? React with 👍 / 👎.

…ublic-api

# Conflicts:
#	docs/getting-started/migration-guide.mdx
#	packages/ack/CHANGELOG.md
#	packages/ack/lib/ack.dart
#	packages/ack/lib/src/annotations/constraints.dart
#	packages/ack/lib/src/constraints/pattern_constraint.dart
#	packages/ack/lib/src/schemas/any_of_schema.dart
#	packages/ack/lib/src/schemas/schema.dart
#	packages/ack_generator/CHANGELOG.md
#	packages/ack_generator/test/integration/validate_alias_test.dart
#	plugins/ack/skills/build-data-classes-with-ack/SKILL.md
…into release-readiness/c-generator

# Conflicts:
#	docs/getting-started/migration-guide.mdx
#	packages/ack/CHANGELOG.md
#	packages/ack_generator/CHANGELOG.md
@leoafarias
leoafarias changed the base branch from main to release-readiness/c-generator December 1, 2026 23:06
Base automatically changed from release-readiness/c-generator to main December 2, 2026 02:04
@leoafarias
leoafarias merged commit 4a88b42 into main Dec 2, 2026
11 checks passed
@leoafarias
leoafarias deleted the release-readiness/d-json-schema branch December 2, 2026 02:24
leoafarias added a commit that referenced this pull request Dec 2, 2026
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