You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fresh Amber V2 projects now use the automatically enforced schema contract as
their primary controller path instead of manually constructing a second schema
object.
amber generate schema teaches schema :action, SchemaClass plus validated_as(SchemaClass) while retaining direct construction only in the
isolated schema unit spec.
HTML scaffolds declare application/x-www-form-urlencoded, bind create and
update automatically, and override the framework failure hook to return an
ECR form with field errors.
Preview API resources declare JSON and use the same automatic action binding;
invalid requests retain the framework's structured JSON failure.
The generated-app smoke harness can name an exact fork repository and commit
so a dependent framework candidate is tested without pretending it has
already merged upstream.
The release smoke now proves that missing species returns HTML 422 before
proving create, persisted read, PATCH update, assets, and the compiled app.
Compatibility
This does not remove or change Amber's deprecated params.validation API.
Existing applications can upgrade first and migrate action by action. The
framework change keeps that legacy path functional, with removal planned no
earlier than a later V2 minor such as 2.5 and the exact release announced
separately.
Validation
crystal spec: 412 examples, 0 failures
scripts/check_beta_contract.sh: passed
complete generated Pet Tracker against framework commit eba20af31b2eb41ca6a7409ccd52792290c75a7b: passed
dependency installation
asset build/check
generated specs and formatting
development and test migrations
application compilation and boot
HTML 422 field error for invalid form input
persisted create and PATCH update
fingerprint, integrity, MIME, immutable-cache, and gzip checks
The failing PR jobs were compiling schema-aware generators against released Amber 2.0.0-beta.4, which does not contain validated_as. Pull-request builds now pin the exact coordinated framework candidate from amberframework/amber#1408 (crimson-knight/amber@eba20af31b2eb41ca6a7409ccd52792290c75a7b) on macOS, Linux x86-64, Linux ARM64, and Windows. Main/manual/release paths still test the published framework emitted by the template.
All replacement checks are green, including both packaged builds, Linux ARM64, Windows x86-64, integration/platform tests, and docs. Local verification also passed: 412 CLI examples and the complete generated Pet Tracker smoke, including HTML 422 schema failures, persistence, PATCH update, and asset delivery.
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
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.
Outcome
Fresh Amber V2 projects now use the automatically enforced schema contract as
their primary controller path instead of manually constructing a second schema
object.
Depends on amberframework/amber#1408.
What changed
amber generate schemateachesschema :action, SchemaClassplusvalidated_as(SchemaClass)while retaining direct construction only in theisolated schema unit spec.
application/x-www-form-urlencoded, bind create andupdate automatically, and override the framework failure hook to return an
ECR form with field errors.
invalid requests retain the framework's structured JSON failure.
so a dependent framework candidate is tested without pretending it has
already merged upstream.
speciesreturns HTML 422 beforeproving create, persisted read, PATCH update, assets, and the compiled app.
Compatibility
This does not remove or change Amber's deprecated
params.validationAPI.Existing applications can upgrade first and migrate action by action. The
framework change keeps that legacy path functional, with removal planned no
earlier than a later V2 minor such as 2.5 and the exact release announced
separately.
Validation
crystal spec: 412 examples, 0 failuresscripts/check_beta_contract.sh: passedeba20af31b2eb41ca6a7409ccd52792290c75a7b: passed