Skip to content

Conversation

kuhe
Copy link
Contributor

@kuhe kuhe commented Jun 3, 2025

currently the structIterator on NormalizedSchema can only be acquired when it is of the structure schema type.
This allows it to be called when it is the unit type and the iterator will be empty.

Operation input/output are always structures, with the exception of the special unit type https://smithy.io/2.0/spec/model.html#unit-type.

@kuhe kuhe requested a review from a team as a code owner June 3, 2025 16:38
@kuhe kuhe force-pushed the fix/structiterator branch from 33bec2f to 3a8ac66 Compare June 3, 2025 16:41
@kuhe kuhe merged commit ae8f1f4 into smithy-lang:main Jun 3, 2025
11 checks passed
@kuhe kuhe deleted the fix/structiterator branch June 3, 2025 16:59
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