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

Update lookup table to handle arbitrary types #75

Merged
merged 1 commit into from
Oct 23, 2022
Merged

Update lookup table to handle arbitrary types #75

merged 1 commit into from
Oct 23, 2022

Conversation

iph
Copy link
Collaborator

@iph iph commented Oct 23, 2022

It turns out that cloudformation actually allows arbitrary types in Fn::Mappings. Within that, it's also not uniform types as well.

This update handles the arbitrary types for non-array-based inputs and will "opt out" for non-array-based complex structures with an any mode, leaving it up to the user to resolve that problem in typescript. Also, in order to reuse f64 types, moved WrapperF64 to a primitives folder that spans the gap of parser and ir.

It turns out that cloudformation actually allows arbitrary types
in Fn::Mappings. Within that, it's also not uniform types as well.

This update handles the arbitrary types for non-array-based inputs
and will "opt out" for non-array-based complex structures with an
`any` mode, leaving it up to the user to resolve that problem in
typescript. Also, in order to reuse f64 types, moved WrapperF64
to a primitives folder that spans the gap of parser and ir.
@iph iph merged commit e5f9e96 into main Oct 23, 2022
@iph iph deleted the mapping-fixes branch October 23, 2022 21:01
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