Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
cc5ce89
fix(ack)!: reject unsupported Draft-7 dependencies
leoafarias Dec 1, 2026
4b7de49
ci: test Flutter 3.50.1 alongside the pinned SDK
leoafarias Dec 1, 2026
65310c1
fix(ack): bound hostname labels before Punycode decoding
leoafarias Dec 1, 2026
2f6d20e
fix(ack): preserve valid IDNA case across platforms
leoafarias Dec 1, 2026
26a07e2
fix(ack): preserve format annotations in Draft-7 export
leoafarias Dec 1, 2026
8c1ac3f
refactor(ack)!: remove duplicate list rule names
leoafarias Dec 1, 2026
01d910a
fix(ack): align email quoting and year zero format checks
leoafarias Dec 1, 2026
22b44ff
feat(ack)!: use one API for URI validation
leoafarias Dec 1, 2026
03f3f04
feat(ack)!: standardize built-in constraint keys
leoafarias Dec 1, 2026
eebac2d
test(json-schema-builder): check asserted format lowering errors
leoafarias Dec 1, 2026
134ac43
fix(ack): export SchemaOperation
leoafarias Dec 1, 2026
c4dc903
feat: expose Unicode normalization in schema import adapters
leoafarias Dec 1, 2026
385ac40
ci: run JSON Schema conformance and format tests in Chrome
leoafarias Dec 1, 2026
4329ccb
refactor(ack): keep transparent schema contexts internal
leoafarias Dec 1, 2026
aaca352
ci: test local date codecs in both reported time zones
leoafarias Dec 1, 2026
712331f
chore: remove the unused changelog replacement command
leoafarias Dec 1, 2026
9b609fd
fix(ack)!: report nested warnings and handle nullable raw schemas
leoafarias Dec 1, 2026
b735358
docs: document stable release preparation from main
leoafarias Dec 1, 2026
20315ae
docs(ack): clarify JSON Schema import expectations
leoafarias Dec 1, 2026
165c2ef
test(ack): retain only exercised optional schema fixtures
leoafarias Dec 1, 2026
697af54
feat(ack)!: share the concrete public rule annotation exports
leoafarias Dec 1, 2026
cb1bf68
docs(ack): clarify which public types support exhaustive switches
leoafarias Dec 1, 2026
b77b54e
fix(ack): preserve typed iteration in schema warning traversal
leoafarias Dec 1, 2026
db2795d
fix(generator): qualify generated model field reads
leoafarias Dec 1, 2026
7d96087
refactor(ack)!: internalize schema model rendering helpers
leoafarias Dec 1, 2026
d14c7a5
fix(generator): escape discriminator keys in emitted errors
leoafarias Dec 1, 2026
c0133ca
fix(generator): qualify class statics in constructor defaults
leoafarias Dec 1, 2026
1c09946
fix(generator)!: inherit sealed union branch naming defaults
leoafarias Dec 1, 2026
57b52ef
fix(generator): name inline JSON Schema objects in UpperCamelCase
leoafarias Dec 1, 2026
7158672
fix(generator)!: validate through class-owned schemas
leoafarias Dec 1, 2026
2c3836d
fix(generator): report invalid rule arguments at their source
leoafarias Dec 1, 2026
3c81ef9
feat(generator)!: derive Dart field names from schema-first JSON keys
leoafarias Dec 1, 2026
697e966
docs(ack): correct the datetime encode error type
leoafarias Dec 1, 2026
31c1ff8
docs(ack): print field errors in the quickstart and example
leoafarias Dec 1, 2026
1010d55
docs(ack): use validation messages in Flutter forms
leoafarias Dec 1, 2026
6b840df
docs(ack): show actual JSON Schema export output
leoafarias Dec 1, 2026
d1aea32
docs: compile public examples and correct invalid Dart snippets
leoafarias Dec 1, 2026
5c0377b
docs(ack): show root error names and JSON Pointers
leoafarias Dec 1, 2026
08cd397
docs: fill missing 1.x to 2.0 migration entries
leoafarias Dec 1, 2026
2261cbd
docs: align adapter guides with conversion and MCP behavior
leoafarias Dec 1, 2026
3de7a9f
docs: add unreleased notes for packages and Ack skills
leoafarias Dec 1, 2026
03aefb5
docs: add generator installation and MCP package metadata
leoafarias Dec 1, 2026
59f5dff
docs: reserve the unreleased Firebase AI changelog heading
leoafarias Dec 1, 2026
d2b8791
fix(generator)!: normalize union and generated model behavior
leoafarias Dec 1, 2026
d03b3fa
docs(generator): clarify reserved fields and shared builder migration
leoafarias Dec 1, 2026
98b2b81
test: satisfy linting in public snippet checks
leoafarias Dec 1, 2026
5328b43
test(generator): pin updated field reads and Set construction
leoafarias Dec 1, 2026
3ea3097
docs: complete the JSON Schema migration rows
leoafarias Dec 1, 2026
acfb12e
test(generator): expect nested generic fields to use model-owned schemas
leoafarias Dec 1, 2026
cea8b83
docs: complete the public API migration rows
leoafarias Dec 1, 2026
cb71395
docs(json-schema-builder): describe the local date codec value
leoafarias Dec 1, 2026
322f01c
test(generator): satisfy linting in wire key assertions
leoafarias Dec 1, 2026
e7bdaae
fix(generator): recognize rules without the public base type
leoafarias Dec 1, 2026
dccc05a
test(generator): pin class-owned collection schemas
leoafarias Dec 1, 2026
1500d07
test(ack): exercise legacy aliases through their public base
leoafarias Dec 1, 2026
a076566
style(json-schema): use the pinned SDK formatter
leoafarias Dec 1, 2026
548826c
test(generator): match each normalized wire key assertion
leoafarias Dec 1, 2026
09df6ce
fix(generator)!: reject custom class-owned schemas in sealed unions
leoafarias Dec 1, 2026
bbed840
fix(ci): restore the required pinned Flutter check name
leoafarias Dec 1, 2026
f0f513d
fix(ack)!: align built-in constraint keys with their rule families
leoafarias Dec 1, 2026
69f59fd
fix(json-schema): resolve warnings through nullable nodes and definit…
leoafarias Dec 1, 2026
10d95e8
fix(generator): qualify constructor defaults inherited through super …
leoafarias Dec 1, 2026
373531f
ci: remove the redundant date time-zone reruns
leoafarias Dec 1, 2026
daf2a6b
docs: align validation and export guidance with Ack 2.0
leoafarias Dec 1, 2026
ad14c95
test(ack): cover schema rendering and context internals
leoafarias Dec 1, 2026
4534ee8
docs: add the NFKC normalization migration
leoafarias Dec 1, 2026
90fb43e
test(release): restore exact changelog heading coverage
leoafarias Dec 1, 2026
0c1e591
docs(ack): clarify internal schema keyword migration
leoafarias Dec 1, 2026
ee1460c
docs: group URI breaking notes under unreleased headings
leoafarias Dec 1, 2026
93be04f
docs(json-schema-builder): describe the import normalizer
leoafarias Dec 1, 2026
3979edd
docs(ack): move schema operation into error context guidance
leoafarias Dec 1, 2026
3bed612
docs(release): clarify stable notes and prerelease preparation
leoafarias Dec 1, 2026
d477fea
fix(json-schema)!: reject dependencies when lowering to Draft-7
leoafarias Dec 1, 2026
b7c9259
fix(generator)!: prevent identifier shadowing in generated models
leoafarias Dec 1, 2026
f7e730f
docs(json-schema): clarify the default dialect and import stack limits
leoafarias Dec 1, 2026
72a64e5
fix(json-schema): bound Unicode label length before Punycode conversion
leoafarias Dec 1, 2026
dfeed53
test(ci): validate Flutter matrix lanes against the release manifest
leoafarias Dec 1, 2026
a830948
fix(generator)!: unify schema-first key tokenization
leoafarias Dec 1, 2026
ef694e4
docs(generator): correct refinement and migration guidance
leoafarias Dec 1, 2026
552fd62
test(generator): cover wire keys, field names, and union diagnostics
leoafarias Dec 1, 2026
acbce0b
docs(ack): record the internal indexed schema constructor
leoafarias Dec 1, 2026
f6c5f7b
fix(generator): resolve union schema aliases in clean builds
leoafarias Dec 1, 2026
9b26114
fix(generator): use a null-aware prefix set element
leoafarias Dec 1, 2026
841f9a5
fix(json-schema)!: use ASCII-only case mapping for IDNA labels
leoafarias Dec 1, 2026
e70c605
chore(example): regenerate class-first runtime helpers
leoafarias Dec 1, 2026
dcfffe9
fix(generator): report missing Unicode normalization dependency
leoafarias Dec 1, 2026
7e7b3a5
fix(generator): show the missing union annotation hint in builds
leoafarias Dec 1, 2026
08fd358
test(docs): compile every classified public Dart snippet
leoafarias Dec 1, 2026
568440b
refactor(ack)!: make constraint attachment helpers internal
leoafarias Dec 1, 2026
67346fd
fix(json-schema): export versionless IP constraints with anyOf
leoafarias Dec 1, 2026
a3dfa01
fix(generator): report invalid discriminators on the union
leoafarias Dec 1, 2026
0d26441
fix(generator)!: express inherited case style through the public anno…
leoafarias Dec 1, 2026
2cef326
fix(ack): expose the abstract generated field schema type
leoafarias Dec 1, 2026
58c791f
test(generator): accept metadata on the model guide fence
leoafarias Dec 1, 2026
e67856e
fix(generator)!: normalize digits and acronyms in generated names
leoafarias Dec 1, 2026
3bd1d7a
fix(generator): preserve interpolated class-owned defaults
leoafarias Dec 1, 2026
46be36b
refactor(ack)!: restrict schema context implementations
leoafarias Dec 1, 2026
42f151e
fix(json-schema): relocate nested references in public nullable raw m…
leoafarias Dec 1, 2026
55ae444
fix(json-schema): show source locations in Draft-7 lowering errors
leoafarias Dec 1, 2026
19d9ed0
docs(json-schema): specify schema-model warning paths and order
leoafarias Dec 1, 2026
990f8f8
fix(generator)!: resolve inherited defaults in the receiving library
leoafarias Dec 1, 2026
b161685
refactor(ack)!: make transparent context construction private
leoafarias Dec 1, 2026
55ce7f1
docs(json-schema): clarify NFKC and ASCII-only case mapping
leoafarias Dec 1, 2026
9f03d79
fix(ack)!: validate constraints on schema copies
leoafarias Dec 1, 2026
4f68500
fix(generator)!: fall back on invalid translated JSON Schema names
leoafarias Dec 1, 2026
69c9582
fix(ack)!: name the local time constraint string_time
leoafarias Dec 1, 2026
c20d847
fix(generator)!: validate class-owned schemas before emitting facades
leoafarias Dec 1, 2026
77b9d02
fix(generator)!: reject explicit case style on schemas and libraries
leoafarias Dec 1, 2026
9dd7f71
fix(ack): infer the lazy context parent type
leoafarias Dec 1, 2026
d3c8eaa
docs(generator): clarify class-owned schema type requirements
leoafarias Dec 1, 2026
bed131d
docs(json-schema): link the import stack overflow issue
leoafarias Dec 1, 2026
8a84821
Merge remote-tracking branch 'origin/main' into release-readiness/e-p…
leoafarias Dec 1, 2026
5ba914a
Merge remote-tracking branch 'origin/release-readiness/e-public-api' …
leoafarias Dec 1, 2026
b84cc40
Merge origin/release-readiness/c-generator into release-readiness/d-j…
leoafarias Dec 1, 2026
9999102
test(generator): pin Unicode fixture to workspace toolchain
leoafarias Dec 1, 2026
ffc3037
Merge remote-tracking branch 'origin/release-readiness/d-json-schema'…
leoafarias Dec 1, 2026
e6020af
Merge remote-tracking branch 'origin/release-readiness/f-docs' into r…
leoafarias Dec 2, 2026
3d70a30
Merge origin/main (E, C, D, F squashes) into release-readiness/g-ci
leoafarias Dec 2, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/flutter-releases.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"3.47.5": {
"dart": "3.13.4",
"sha256": "2132e990f236f8d22e7c6314b29a191a95b10d7cbcfec9b4e2e303d996652cbb"
},
"3.50.1": {
"dart": "3.14.0",
"sha256": "4ad17fc8462fbcef2ba19ff4a78c0a16b7147fde1add8578e267ea62cdb92678"
}
}
}
71 changes: 55 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,18 @@ jobs:
# That reference was mutable and its FVM step piped an unverified installer
# into a shell, so every run could execute code that nobody reviewed here.
# The checks now live in this repository and pin every dependency.
name: Run tests for all packages
name: ${{ matrix.flutter-version == '' && 'Run tests for all packages' || format('Run tests for all packages ({0})', matrix.sdk) }}
if: "github.event_name != 'pull_request' || github.event.pull_request.draft == false"
runs-on: ubuntu-24.04
timeout-minutes: 45
strategy:
fail-fast: false
matrix:
include:
- sdk: pinned Flutter
flutter-version: ''
- sdk: Flutter 3.50.1
flutter-version: '3.50.1'
steps:
- name: Checkout repository
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
Expand All @@ -36,6 +44,8 @@ jobs:

- name: Set up the pinned Flutter SDK
uses: ./.github/actions/setup-flutter
with:
flutter-version: ${{ matrix.flutter-version }}

- name: Resolve workspace dependencies
run: dart pub get
Expand All @@ -46,22 +56,51 @@ jobs:
- name: Analyze and test every package
run: dart run melos run ci --no-select

- name: Test numeric parity and JSON Schema imports in Chrome
- name: Test Ack runtime in Chrome
working-directory: packages/ack
run: |
tests=()
for path in test/*_test.dart test/*/*_test.dart test/schemas/extensions/*_test.dart; do
case "$path" in
# JSON Schema suites run separately below.
test/json_schema_*) continue ;;
# These suites read local files or run a Dart subprocess.
test/runtime_dependencies_test.dart|\
test/schemas/local_date_timezone_test.dart|\
test/schemas/object_presence_characterization_test.dart|\
test/documentation/core_concepts_json_serialization_examples_test.dart|\
test/documentation/documentation_source_integrity_test.dart|\
test/documentation/getting_started_installation_examples_test.dart|\
test/documentation/overview_doc_examples_test.dart) continue ;;
esac
tests+=("$path")
done
dart test --platform chrome "${tests[@]}"

- name: Test JSON Schema imports, conformance, and formats in Chrome
working-directory: packages/ack
run: |
dart test --platform chrome \
test/schemas/numeric_platform_parity_test.dart \
test/schemas/duration_range_test.dart \
test/schemas/nullability_export_contract_test.dart \
test/schemas/extensions/numeric_extensions_test.dart \
test/schemas/extensions/list_schema_extensions_test.dart \
test/utils/collection_utils_test.dart \
test/json_schema_idna_decode_failure_test.dart \
test/json_schema_import_test.dart \
test/json_schema_bundled_dialect_test.dart \
test/json_schema_vocabulary_contract_test.dart \
test/json_schema_import_api_test.dart
tests=()
for path in test/json_schema_*_test.dart; do
case "$path" in
# These suites use the file system or external validators.
test/json_schema_conformance_test.dart|\
test/json_schema_fixture_corpus_test.dart|\
test/json_schema_import_a2ui_test.dart|\
test/json_schema_import_public_api_test.dart) continue ;;
esac
tests+=("$path")
done
dart test --platform chrome "${tests[@]}"

- name: Test JSON Schema import bridge in Chrome
- name: Test the JSON Schema builder adapter in Chrome
working-directory: packages/ack_json_schema_builder
run: dart test --platform chrome test/from_json_schema_builder_test.dart
run: dart test --platform chrome test

- name: Test the MCP adapter in Chrome
working-directory: packages/ack_mcp_dart
run: dart test --platform chrome test

- name: Test generated models and codec examples in Chrome
working-directory: example
run: dart test --platform chrome test
71 changes: 37 additions & 34 deletions PUBLISHING.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,8 @@ References: [Melos versioning](https://melos.invertase.dev/commands/version),

1. Check pub.dev and tags before selecting the version; published versions and
their changelog sections are immutable.
2. Start from the appropriate release line: current `origin/main` for a stable
release, or the existing `origin/release/<major>.<minor>` branch for a
prerelease. Resolve dependencies:
2. Branch from the current `origin/main` for a stable release. For a prerelease,
you can also branch from `origin/release/<major>.<minor>`. Resolve dependencies.

```sh
dart pub get
Expand All @@ -49,7 +48,7 @@ References: [Melos versioning](https://melos.invertase.dev/commands/version),
3. Preview/prepare a coordinated version without creating commits or tags:

```sh
dart run melos version --manual-version=ack:2.0.0-beta.3 --yes --no-git-commit-version
dart run melos version --manual-version=ack:2.0.0 --yes --no-git-commit-version
```

Use the named flag, not a positional package argument: the positional form
Expand All @@ -59,36 +58,41 @@ References: [Melos versioning](https://melos.invertase.dev/commands/version),
Do not pass `--all`: that would include private packages. Melos fetches tags
through Git; a new local branch needs an upstream before this command runs.

4. Review generated changelogs and retain substantive release notes; move only
unreleased notes into the new section, preserving every published section.
Update installation snippets to match each package's version. Under
`plugins/ack`, bump the Claude, Codex, and Cursor `plugin.json` versions,
the baseline constraint in `skills/using-ack/SKILL.md`, and the version-matched
repository links in the skills to the new release tag.
5. Compare against the most recent coordinated stable release in
`API_BASELINE_VERSION` in `.github/workflows/preflight.yml` (currently
`1.7.0`). Keep that stable baseline for prereleases, so a prerelease cannot hide a
breaking change since the last stable version. Raise it after the next
stable release. Record a new
package's actual first release in `ackPackageFirstReleases` in
`scripts/src/workspace_packages.dart`;
checks skip only older baselines. `ack_mcp_dart` first released at 1.3.0.
4. Review generated changelogs and preserve every published section. Write each
package's `## 2.0.0` entry as a net summary of changes since the last stable
release, 1.7.1. Use the Unreleased notes and include changes from prereleases
that still apply to 2.0.0.

Raise sibling `ack` constraints to the release version. For 2.0.0, set
`ack: ^2.0.0` in the four sibling packages. In `example/pubspec.yaml`, set
`ack: ^2.0.0` and `ack_generator: ^2.0.0`. Update installation snippets to
match each package's version. Under `plugins/ack`, bump the Claude, Codex,
and Cursor `plugin.json` versions, the baseline constraint in
`skills/using-ack/SKILL.md`, and the version-matched repository links in the
skills to the new release tag.
5. Compare against the stable API baseline configured by `API_BASELINE_VERSION`
in `.github/workflows/preflight.yml` (currently `1.7.0`). Keep that baseline
through prereleases to catch breaking changes from the stable API. Raise it
after the next stable release. Record a new package's actual first release
in `ackPackageFirstReleases` in `scripts/src/workspace_packages.dart`.
Checks skip only older baselines. `ack_mcp_dart` first released at 1.3.0.
6. Commit the reviewed version, changelog, and documentation changes locally
before the publish dry run. Pub treats modified tracked package files as a
warning, and this repository requires zero warnings.
7. Validate the complete release from that clean commit:

```sh
dart scripts/verify_release_tag.dart v2.0.0-beta.3 --skip-ancestry
dart scripts/verify_release_tag.dart v2.0.0 --skip-ancestry
dart run melos run ci
dart scripts/api_check.dart 1.7.0
dart scripts/publish_dry_run.dart
dart run melos run validate-jsonschema:batch
```

`--skip-ancestry` is only for preparing a version before the tag exists.
The actual release workflow always enforces ancestry on `origin/main` (or the
matching `origin/release/<major>.<minor>` branch for pre-release tags).
The workflow requires stable tags to be reachable from `origin/main`. For
prerelease tags, it also accepts commits on the matching
`origin/release/<major>.<minor>` branch.
CI also runs minimum Dart/Flutter SDK checks, deterministic generation, and
staged hosted-dependency analysis; all must pass on the release merge commit.
8. Review and merge the release PR before creating the tag.
Expand All @@ -110,17 +114,17 @@ for the original procedure.
After the release commit's CI/preflight succeeds:

```sh
git fetch origin main release/2.0 --tags
# Use the exact reviewed release merge commit, not an arbitrary later main head.
git tag -a v2.0.0-beta.3 <release-merge-sha> -m 'Ack 2.0.0 beta 3'
dart scripts/verify_release_tag.dart v2.0.0-beta.3 --main-ref=origin/release/2.0
git push origin v2.0.0-beta.3
git fetch origin main --tags
# Substitute the exact reviewed release merge commit.
git tag -a v2.0.0 <release-merge-sha> -m 'Ack 2.0.0'
dart scripts/verify_release_tag.dart v2.0.0 --main-ref=origin/main
git push origin v2.0.0
```

These commands target the 2.0 prerelease branch. If the release PR is merged
into `main`, tag that reviewed merge commit after its CI passes and verify
with `--main-ref=origin/main` instead. Stable release tags must also be
reachable from `origin/main`; use the verifier's default main reference for them.
Use the reviewed merge commit on `origin/main` after CI passes. For a prerelease,
substitute the prerelease version and tag in the commands above. If its reviewed
merge commit is on `release/<major>.<minor>`, fetch that branch and verify the tag
with `--main-ref=origin/release/<major>.<minor>` before pushing it.

Pushing the tag triggers `.github/workflows/release.yml`; there is no Melos
publish/release script. The workflow verifies the tag, reruns release preflight,
Expand All @@ -146,7 +150,6 @@ missing version. Rerun failed jobs on the **same tag**; never move a published t
or republish different contents under an existing version.

After all five exact versions are visible, create the GitHub Release from the
existing tag using the prepared release notes and mark it as a prerelease for
alpha/beta versions. Before the first subsequent code
change, begin a new unreleased changelog section instead of editing the
2.0.0-beta.3 notes (and preserve every earlier published section).
existing tag using the prepared release notes. Mark it as a prerelease for a
prerelease tag. Open a new `## Unreleased` changelog section for the next code
change and preserve all published notes.
9 changes: 4 additions & 5 deletions packages/ack/test/fixtures/json_schema_2020_12_full/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Pinned JSON Schema Test Suite

This directory vendors the **complete** `tests/draft2020-12/` tree and the
suite's `remotes/` fixtures from
This directory vendors all required `tests/draft2020-12/` fixtures, the
optional format cases exercised by Ack, and the suite's `remotes/` fixtures from
[JSON-Schema-Test-Suite](https://github.com/json-schema-org/JSON-Schema-Test-Suite)
commit `80c87e8fca8b207a7a7ae944b875f0fcf889f46a` (MIT; see `LICENSE`).
The GitHub archive SHA-256 is
Expand All @@ -14,6 +14,5 @@ for diff hygiene. They are intended for fully offline validation: URLs under
subset in `../json_schema_import/` remains a separate regression corpus.

Do not count the presence of these files as a conformance pass. The conformance
tests exercise every required group, plus the optional format-assertion groups
in their correct modes, without silent skips. Other optional groups are not
claimed as complete.
tests exercise every required group and the optional format-assertion groups
in their respective modes.

This file was deleted.

Loading
Loading