Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complex Parameter Type Support #432

Closed
adrianna-chang-shopify opened this issue Jun 4, 2021 · 1 comment
Closed

Complex Parameter Type Support #432

adrianna-chang-shopify opened this issue Jun 4, 2021 · 1 comment
Labels
enhancement New feature or request stale

Comments

@adrianna-chang-shopify
Copy link
Contributor

From the discussion here, it seems like there are a lot of use cases for supporting complex parameter (attribute) types - for example, arrays of integers and arrays of strings. These type objects could coerce input into a nicer format and also perform some validations.

The main use case for this is an array of ids. One possibility is to use a macro like ids_attribute :post_ids inside a Task to specify this, and to build it using ActiveModel::Type and ActiveModel::Validation objects.

Let's keep an eye out for user feedback and figure out how to provide the most value here.

Copy link

This issue has been marked as stale because it has not been commented on in two months.
Please reply in order to keep the issue open. Otherwise, it will close in 14 days.
Thank you for contributing!

@github-actions github-actions bot added the stale label Jan 27, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stale
Projects
None yet
Development

No branches or pull requests

1 participant