diff --git a/smithy-model/src/main/java/software/amazon/smithy/model/loader/IdlModelLoader.java b/smithy-model/src/main/java/software/amazon/smithy/model/loader/IdlModelLoader.java index 99793715bf0..141db61b01c 100644 --- a/smithy-model/src/main/java/software/amazon/smithy/model/loader/IdlModelLoader.java +++ b/smithy-model/src/main/java/software/amazon/smithy/model/loader/IdlModelLoader.java @@ -1083,7 +1083,6 @@ private void parseInlineableOperationMember( } // Remove any pending, invalid docs that may have come before the inline shape. tokenizer.removePendingDocCommentLines(); - tokenizer.next(); // don't skip docs here in case there are docs on the inlined structure. tokenizer.skipWs(); consumer.accept(parseInlineStructure(id.getName() + suffix, defaultTrait)); diff --git a/smithy-model/src/test/resources/software/amazon/smithy/model/loader/valid/inline-io/inline-io.smithy b/smithy-model/src/test/resources/software/amazon/smithy/model/loader/valid/inline-io/inline-io.smithy index 858368f5d09..42c8d2afeda 100644 --- a/smithy-model/src/test/resources/software/amazon/smithy/model/loader/valid/inline-io/inline-io.smithy +++ b/smithy-model/src/test/resources/software/amazon/smithy/model/loader/valid/inline-io/inline-io.smithy @@ -30,7 +30,8 @@ structure NameBearer { } operation UsesMixins { - input := with [NameBearer] { + // Parser handles weird/missing SP + input :=with [NameBearer] { id: String }