Skip to content

feat: v0.1.0 - simplify form APIs and generator, upgrade dependencies - #12

Open
jeroen-meijer wants to merge 16 commits into
mainfrom
feat/v0.1.0
Open

feat: v0.1.0 - simplify form APIs and generator, upgrade dependencies#12
jeroen-meijer wants to merge 16 commits into
mainfrom
feat/v0.1.0

Conversation

@jeroen-meijer

Copy link
Copy Markdown
Collaborator

Description

This PR simplifies the shape and shape_generator APIs for v0.1.0 and reduces form boilerplate while keeping generated behavior explicit and tested.

Changes

  • Remove FormBody and FormErrors generic type parameters from the public API
  • Add SimpleFormField<T, E> and add @FieldRequired() for required validation on optional params
  • Update generator to support redirecting factories and automatic GenericFormField wrapping for plain params
  • Keep explicit custom field wrappers supported in generated form bodies
  • Remove Equatable usage from generated/public API path and generate operator == and hashCode
  • Improve constructor and field validation diagnostics in shape_generator
  • Update examples, READMEs, root migration docs, fixtures, goldens, and test harnesses
  • Add and update tests across shape, shape_generator, and example package
  • Add changelog entries for API, generator, and internal technical updates

Remove FormBody/FormErrors generics, add @fieldrequired annotation,
support redirecting factories with auto-wrapping via GenericFormField,
and replace Equatable with explicit operator==/hashCode.
@jeroen-meijer
jeroen-meijer marked this pull request as draft August 6, 2026 11:00
@jeroen-meijer
jeroen-meijer marked this pull request as ready for review August 6, 2026 12:00
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