Skip to content

docs: prefer enumValues over enumString for Dart enums#81

Merged
leoafarias merged 1 commit intomainfrom
leoafarias/prefer-enum-values-docs
Feb 25, 2026
Merged

docs: prefer enumValues over enumString for Dart enums#81
leoafarias merged 1 commit intomainfrom
leoafarias/prefer-enum-values-docs

Conversation

@leoafarias
Copy link
Collaborator

Updated documentation to prefer Ack.enumValues() when a Dart enum exists, providing type safety and richer parsing. Reordered examples, clarified enumString usage for ad-hoc lists only, and consolidated guidance per Diataxis principles.

- Reorder enum schema listings to show enumValues first across all docs
- Update examples to use Ack.enumValues with Dart enums instead of enumString
- Clarify that enumString is for ad-hoc string lists without backing enums
- Update @AckModel examples to use Dart enum fields (which auto-generate enumValues)
- Consolidate preference guidance to api-reference and llms.txt to avoid repetition
- Apply Diataxis principles: reference describes, how-to guides show by example
@docs-page
Copy link

docs-page bot commented Feb 25, 2026

To view this pull requests documentation preview, visit the following URL:

docs.page/btwld/ack~81

Documentation is deployed and generated using docs.page.

@leoafarias leoafarias merged commit f27f54f into main Feb 25, 2026
3 checks passed
@leoafarias leoafarias deleted the leoafarias/prefer-enum-values-docs branch February 25, 2026 17:06
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