Skip to content

feat: ash.gen.resource support for arrays with subtypes#2229

Closed
chazwatkins wants to merge 1 commit intoash-project:mainfrom
chazwatkins:feat/generator_typed_arrays_2227
Closed

feat: ash.gen.resource support for arrays with subtypes#2229
chazwatkins wants to merge 1 commit intoash-project:mainfrom
chazwatkins:feat/generator_typed_arrays_2227

Conversation

@chazwatkins
Copy link
Copy Markdown
Contributor

@chazwatkins chazwatkins commented Jul 25, 2025

Changes

  • Adds modifier for array to specify a subtype. i.e. array{string}

closes #2227

@ken-kost Submitted a different solution in #2228 - Feel free to choose whichever you prefer.

I initially tried [] and {array, string}, but both had issues with shell escaping.

Contributor checklist

Leave anything that you believe does not apply unchecked.

  • I accept the AI Policy, or AI was not used in the creation of this PR.
  • Bug fixes include regression tests
  • Chores
  • Documentation changes
  • Features include unit/acceptance tests
  • Refactoring
  • Update dependencies

closes ash-project#2227

- Adds modifier for `array` to specify a subtype. i.e. `array{string}`
@zachdaniel zachdaniel closed this Jul 25, 2025
@zachdaniel
Copy link
Copy Markdown
Contributor

Thanks for the PR! Would prefer the modifier as opposed to the {} syntax.

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.

Generate typed array attributes from ash.gen.resource

2 participants