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

List of classes #96

Open
arjes opened this issue May 18, 2019 · 1 comment
Open

List of classes #96

arjes opened this issue May 18, 2019 · 1 comment
Labels
feature-request A feature should be added or improved.

Comments

@arjes
Copy link
Contributor

arjes commented May 18, 2019

The current documentation sates lists that a list may include only:

  • Hash
  • Array
  • String
  • Numeric
  • Boolean
  • IO
  • Set
  • nil

I've been looking over the code and was hoping theres was a way to define a formal class within a list. For example:

class Order
    include Aws::Record
    list_attribute :line_items, of: LineItem
end

The exact interface for how this would be accomplished is up for debate, but if this is a feature within the scope of this gem I would be willing to contribute it.

@alextwoods alextwoods added the feature-request A feature should be added or improved. label Apr 11, 2022
@alextwoods
Copy link
Contributor

Related to #120 - we'll treat this as a feature request together, but a solution for more generic nested marshaling or marshaling from a schema of some sort is fairly complex. In the mean time, we'd recommend using a custom marshaller.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request A feature should be added or improved.
Projects
None yet
Development

No branches or pull requests

2 participants