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

Various IDL 2.0 fixes and tweaks #1313

Merged
merged 4 commits into from
Jul 25, 2022
Merged

Various IDL 2.0 fixes and tweaks #1313

merged 4 commits into from
Jul 25, 2022

Conversation

mtdowling
Copy link
Member

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

This commit adds a bit more 1.0 support to NullableIndex to
account for shapes that weren't converted to Smithy 2.0 but
still target a removed primitive prelude shape that implies
a member is non-nullable by default.
@mtdowling mtdowling requested a review from a team as a code owner July 22, 2022 19:57
Add a nullability resolver that uses only v1 model semantics
to account for manually created models that didn't pass through
the upgrade functionality of a ModelAssembler. Needing to use
this method should be very rare, but adding it in case as a
kind of utility method.
@mtdowling mtdowling changed the title Fix 2.0 deprecations and support remove primitive prelude shapes in NullableIndex Various IDL 2.0 fixes and tweaks Jul 22, 2022
Rather than expose a NamedMembers interface, I think it makes more
sense to just move all member accessors to Shape. This gets rid
of a lot of cruft when trying to deal with different kinds of shapes
(for example, if you want to write something that works with both
structures and unions).

Furthermore, structurallyExclusive only impacts structure shapes.
This fixes an issue where it was implemented to also check enums,
intEnums, and unions.
@mtdowling mtdowling force-pushed the fix-2.0-deprecations branch from bd6414f to 45c42cf Compare July 22, 2022 23:58
@mtdowling mtdowling requested a review from kstich July 25, 2022 17:40
@kstich kstich merged commit cc93bd4 into idl-2.0 Jul 25, 2022
@mtdowling mtdowling deleted the fix-2.0-deprecations branch July 29, 2022 23:12
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.

2 participants