-
Notifications
You must be signed in to change notification settings - Fork 213
Builders of builders #1342
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
Merged
Merged
Builders of builders #1342
Changes from 49 commits
Commits
Show all changes
294 commits
Select commit
Hold shift + click to select a range
1fd9c74
add note about EventStreamTestTools being incorrectly used for server…
david-perez 3d18e88
Add copyright notice to constrained.rs
david-perez 6e67a1c
Fix AWS SDK
david-perez 442eddd
Merge branch 'davidpz-pub-crate' into davidpz-builders-of-builders
david-perez a274ec5
Don't crash codegen with unsupported constraint traits
david-perez 9f2065d
Merge remote-tracking branch 'awslabs/main' into davidpz-builders-of-…
david-perez 3a9bc56
make svt yield fewer errors
david-perez 2fe280d
disable svt
david-perez 8864f1d
operation_deser builders take in unconstrained types
david-perez b77f6fb
fix aws sdk sso
david-perez 07da98f
Revert "disable svt"
david-perez 1f6ef66
Merge remote-tracking branch 'awslabs/main' into davidpz-builders-of-…
david-perez 0cc2644
changes in UnconstrainedShapeSymbolProvider
david-perez e9e8205
sst works for lists
david-perez 4422b52
sst and srt work for lists
david-perez 8c46710
svt not working for maps
david-perez 831bfc0
sst list of list works
david-perez 465139b
sst map of map works
david-perez ff0c43b
this commit build sst, srt, and svt
david-perez 03ff5fd
fix unit tests
david-perez 8f322cd
ConstraintTests.kt
david-perez 80ec705
replace DFS in Constraints.kt in favor of Walker implementation
david-perez fde11e9
refactor renderBuilderMemberFn
david-perez fcd75c8
Merge remote-tracking branch 'awslabs/main' into davidpz-builders-of-…
david-perez f81550c
move Constrained trait impl to Constrained* generators
david-perez d7b6071
Length constraint trait on map shapes implemented
david-perez c9b84c8
Length constraint trait on string shapes implemented
david-perez 3670c69
Merge remote-tracking branch 'awslabs/main' into davidpz-builders-of-…
david-perez fb168a5
comment
david-perez 0a03b71
fixed when deser of HTTP-bound @length string shapes; sst/svt/srt/ser…
david-perez af9871f
Merge remote-tracking branch 'awslabs/main' into davidpz-builders-of-…
david-perez 733d235
make clippy happy; unions of structures don't work
david-perez d97abfe
make clippy happy about recursive shapes
david-perez fe35cc2
Merge remote-tracking branch 'awslabs/main' into davidpz-builders-of-…
david-perez 4fc2ee5
add some docs to UnconstrainedShapeSymbolProvider
david-perez 6488239
remove unused TryFrom,TryInto imports, we're now using Rust 2021 edition
david-perez ae351a3
add support for transitively constrained sets
david-perez ca32c8e
rename isConstrained to isDirectlyConstrained
david-perez 07007ab
only map holding constrained value needs iterating to constrain value
david-perez 5c7636d
support maps of constrained strings with httpHeaderPrefix trait
david-perez 5accf0b
support lists/sets of constrained strings with httpHeader trait
david-perez 9b163ab
support lists/sets of constrained strings with httpQuery trait
david-perez 5acda33
support maps of constrained strings with httpQueryParams trait
david-perez 587fa9c
support maps of list/set of constrained strings with httpQueryParams …
david-perez 8f26ac0
cleanup sst model; all of this should pass but it doesn't
david-perez cda1c09
comment out things that don't work from sst
david-perez 4e31944
Make public maps implement Deref
david-perez 98b5c62
Make public maps work in httpHeadersPrefix
david-perez b143866
Add MinLengthString, MaxLengthString, FixedLengthString to model
david-perez 326cbd1
Appease clippy, consider allowing type_complexity
david-perez 94a6fa2
Add a LengthString bound to httpLabel
david-perez e3616fd
dont implement Deref or AsRef, rely on .0; add inner()
david-perez 3b5e751
enable allow type_complexity globally, everything except XML works
david-perez 51c83b6
Fix XML
david-perez 893060e
Add constraints model and don't use simple anymore
david-perez fb21f93
rename everything
david-perez c50ca58
cleanup and some docs for {PubCrate}ConstrainedShapeSymbolProvider
david-perez 4317175
general cleanups
david-perez e691bf7
Merge remote-tracking branch 'awslabs/main' into davidpz-builders-of-…
david-perez 0a02661
fix SymbolVisitor: send config
david-perez af2dda1
Cleanup member shape impl of PubCrateConstrainedShapeSymbolProvider
david-perez 6e458ea
Move ConstraintViolations to model module
david-perez 8afed5e
Clean up ConstraintViolationSymbolProvider
david-perez 1168c5b
Have a single collection visitor method in ServerCodegenVisitor
david-perez 4abc947
Add some docs to the constrained type generators and their generated …
david-perez 3874c0e
SIMPLE SIMPLE SIMPLE MODEL
david-perez 783d384
Remove some stale TODOs
david-perez 498a0d5
Revert "SIMPLE SIMPLE SIMPLE MODEL"
david-perez 9d06368
Fix server unit tests
david-perez 39b1712
Fix UnconstrainedMapGeneratorTest.kt
david-perez 0602785
Merge remote-tracking branch 'awslabs/main' into davidpz-builders-of-…
david-perez aa1a2fb
Use Display and TryFrom from RuntimeType
david-perez 6036e9e
Add support for enums in payloads
david-perez 83dd8c8
Modify constraints.smithy to take into account enums bound to HTTP me…
david-perez effa0e5
Revert "Modify constraints.smithy to take into account enums bound to…
david-perez 7d9f601
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 3afae8e
Constrained unions work
david-perez a52886d
Fix server enum unit tests
david-perez 71fb17f
Revert "Revert "Modify constraints.smithy to take into account enums …
david-perez 8d3f434
Uncomment codegen server integration tests
david-perez 6496b47
Modify constraints.smithy to make it pass, link issues
david-perez 2744eb5
Address some easy TODOs
david-perez 679518e
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 0983546
Add TODO about pulling out type_complexity to a separate commit
david-perez ea1bbca
Assorted fixes for constrained unions
david-perez d34af64
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 7829ddc
Add links to PRs/issues for some TODOs
david-perez e280a01
save work
david-perez f2e3b27
Use io.kotest.inspectors.forAll
david-perez b20e5c4
Unit tests for ConstrainedShapeSymbolProvider and PubCrateConstrained…
david-perez 52be445
Rename to PubCrateConstrainedCollectionGenerator
david-perez 0e4ce40
Not doing unit tests for these
david-perez fbf0aac
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez dc37a8d
Remove useless statement from InlineDependencyTest
david-perez ad86d7d
Fail at trying to rewrite unit tests spanning multiple modules using …
david-perez eaf918b
Revert "Fail at trying to rewrite unit tests spanning multiple module…
david-perez a2f9980
ConstrainedStringGeneratorTest
david-perez f7218d2
ConstrainedMapGeneratorTest
david-perez 6d78301
Remove TODO addressed in previous commit
david-perez 21a117a
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez c56d9fb
Remove incorrect TODO
david-perez d327f31
UnconstrainedUnionGeneratorTest
david-perez 3bdb1ca
save work
david-perez 0d8bdb9
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 0b9cd6b
Comment out @error message constrained string type
david-perez d51238d
CodegenContext split: cst, sst, sdk work
david-perez 61cc2e7
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 96981d3
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 3fc9af4
spst compiles but doesn't work
david-perez 4f0ffef
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez c2e2b56
save work
david-perez fbba870
sst constraints_without_public_constrained_types,constraints - Constr…
david-perez 7cf173e
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 850a1bf
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 194a19b
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 7a6b9ca
constraints,constraints_without_public_constrained_types work: Constr…
david-perez ce42e3e
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 9f8f925
small refactor in UnconstrainedUnionGenerator
david-perez 035e4c7
constraints,constraints_without_public_constrained_types work: Constr…
david-perez bbfc42e
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 91cce7a
save work
david-perez a674f9a
Revert more or less until 4f0ffefb, with constraints.smithy working fine
david-perez 56dc435
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 24da7b1
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 183fe57
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 1e7c975
save work
david-perez 3692e67
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 466b03c
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 4e62c13
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 39c457d
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 181769b
constraints,constraints_without_public_constrained_types work: Constr…
david-perez 3c9fb91
constraints,constraints_without_public_constrained_types work: Constr…
david-perez d8a1591
constraints,constraints_without_public_constrained_types work: all op…
david-perez f0bccb3
constraints,constraints_without_public_constrained_types work: blob s…
david-perez b49aa17
Add an event streams operation to constraints.smithy
david-perez eafcc30
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 493cd6c
constraints,constraints_without_public_constrained_types work: event …
david-perez d816c8f
rename namespace of constraints.smithy
david-perez 77acd23
pokemon service: server and client SDKs work
david-perez b19ae9a
fix server builder setter names, rest_json_extras server now works
david-perez 89c927b
Handle enum shapes in UnconstrainedShapeSymbolProvider
david-perez c40b158
avoid useless_conversion when converting from the pub(crate) constrai…
david-perez e64203e
clippy: fix redundant closure
david-perez 3111c7c
clippy: fix enum_variant_names
david-perez 5487991
clippy: redundant unconstrained.into() when converting unions
david-perez c3806eb
constraints,constraints_without_public_constrained_types clippy work
david-perez dbf7d9e
Refactor to use `workingWithPublicConstrainedWrapperTupleType` in `Co…
david-perez 0789fce
Don't use curly braces where not needed; ---- ssa works ----
david-perez d6e3f89
sa, ca work
david-perez 9569928
Update Pokémon Service to work with constraint traits
david-perez d9abb86
./gradlew ktlintFormat
david-perez c312910
Make spst compile
david-perez 860e272
Fix Python server; spst fully works
david-perez e8c42fd
Make server-unit-tests compile; no pass yet
david-perez f8a323b
Fix 'it should generate unconstrained unions' test
david-perez 0f799a4
Missing to `String` conversion in EventStreamUnmarshallerGenerator; s…
david-perez 33e20d8
Fix Python Pokémon server SDK generation
david-perez 6d09543
./gradlew ktlintFormat
david-perez b7b2644
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 018dea9
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez fd0d94a
Fix some copyright headers: no full stop at the end of Apache-2.0
david-perez f8c700c
Refactor Constraints.kt
david-perez c491fb3
Inline deserializerBuilderSetterName, adjust TODOs
david-perez 97f5955
Docs; simplified renderBuilderMemberFn
david-perez c6ac759
./gradlew ktlintFormat
david-perez a79db74
Make ServerBuilder constraint violation rendering DRYer
david-perez 603bf5c
Add documentation to `UnconstrainedMapGenerator`, `UnconstrainedUnion…
david-perez 8e63017
Remove incorrect TODO
david-perez 28b3f6f
Attach issue to TODO about sensitive Display trait impl in Constraine…
david-perez 3f9478b
Adjust TODO about Display impl not honoring sensitive trait in Constr…
david-perez e624a53
Add validation to ensure unsupported constraints are not used
david-perez 94ab662
Adjust TODOs
david-perez 148cc64
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 274adf1
./gradlew ktlintFormat
david-perez defe1fe
save work -- was trying to get rest_json_validation to compile
david-perez 050e225
passes protocol tests
david-perez 4cad83e
fix length map and length map key validation messages
david-perez 169e6de
fix enum and recursive structures test
david-perez 8af068d
fix list value test cases
david-perez 3cbf2cf
fix rest_json_malformed_enum_map
david-perez 42cb88e
bring back LengthMapValue tests; we haven't implemented range on list…
david-perez 925bd70
Link to 2.0 spec in Constraints.kt
david-perez b421e05
Explicitly type `Boolean` return type in `Constraints.kt`
david-perez 5396e73
Adjust docs for PubCrateConstrainedShapeSymbolProvider
david-perez 881ecb3
Adjust docs in PubCrateConstrainedShapeSymbolProvider
david-perez ef4b7ba
Type `Boolean` as return type in functinos for StructureGenerator
david-perez 48920b5
Try to make ErrorGenerator messageSymbol return type calculation a bi…
david-perez 2c0c0d6
Refactor `HttpBindingGenerator.renderPrefixHeader`
david-perez 42ee464
Document and rename to `AggregateShapeReachableFromOperationInputTagT…
david-perez 281e61f
Move `isShapeReachableFromOperationInput` into `AggregateShapeReachab…
david-perez 973f44a
Add phrase about Python having `publicConstrainedTypes` set to `false`
david-perez 1de207c
Try to move MaybeConstrained, Constrained into aws-smithy-http-server
david-perez 7c029d4
Revert "Try to move MaybeConstrained, Constrained into aws-smithy-htt…
david-perez a180566
Make PubCrateConstraintViolationSymbolProvider wrap ConstraintViolati…
david-perez af57b95
Constraint violation error messages start with uppercase
david-perez ddeedbf
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 7b1a2a9
save work
david-perez 62b279c
save work
david-perez cadf33f
fix merge at the expense of hardcoding always server + publicConstrai…
david-perez 94c3d6e
sst constraints,constraints_without_public_constrained_types test + c…
david-perez be594bb
attach ValidationException on operations whose input is constrained f…
david-perez cc3c71b
Add ValidationException to the error set of the StoreServiceBlob oper…
david-perez b013e62
Add ValidationException to the error set of a bunch of services
david-perez ccbbb35
Comment out s3 model; sa works
david-perez 24315cd
Calculate shapesReachableFromConstrainedOperationInputs in AggregateS…
david-perez b45a633
Revert "Calculate shapesReachableFromConstrainedOperationInputs in Ag…
david-perez 4ac0511
Make `server-unit-tests` work
david-perez 4bd38a1
Fix spst and python-tests
david-perez 7b177bf
Fix server-e2e-tests
david-perez 09b22da
./gradlew ktlintFormat
david-perez 8e8c59d
Tackle a few TODOs
david-perez 8ada4a0
./gradlew ktlintFormat
david-perez d709b58
Fix more TODOs
david-perez f99ece8
Fix more TODOs
david-perez ad3fb6a
Fix more TODOs
david-perez 7d0d230
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez abd003b
Adjust two TODOs
david-perez fc116ad
Add TODOs from first PR review
david-perez 35da738
Refactor `Instantiator`
david-perez fe25616
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 77b315e
Merge remote-tracking branch 'upstream/davidpz/split-instantiator' in…
david-perez 7439f3d
./gradlew ktlintFormat
david-perez 2b73958
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 824d6d7
Delete ConstraintsButThisShouldNotStayInCore
david-perez 21a8df3
Address some TODOs
david-perez c4e4ad5
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 51f11b9
Address some TODOs
david-perez a4fa15c
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 4ec72aa
./gradlew ktlintFormat
david-perez 3a0a413
Address some TODOs
david-perez e9e5633
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez d7e0aaa
./gradlew ktlintFormat
david-perez fb4b5cd
Fix Clippy XML serialization of `String`
david-perez 4380391
Validate operations with constrained input have ValidationException a…
david-perez e372bb8
Honor `sensitive` in constrained strings
david-perez 7457edf
Remove `parse` method
david-perez 0cd7ffd
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 4bf2cbb
Copyright header
david-perez 425bbde
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 7c8c9ff
rest_json_extras,misc need ValidationException
david-perez 9215707
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 5f12751
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 945e42e
Address jdisanti's comments
david-perez 9f81653
Add changelog entries
david-perez 87063b4
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez 655fd1d
Bring back failing test and comment I inadvertently deleted in past m…
david-perez 9679158
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez e1e729f
Merge remote-tracking branch 'upstream/main' into davidpz-builders-of…
david-perez d35394e
Fix EventStreamUnmarshallerGeneratorTest
david-perez a8301db
Kick-off CI again
david-perez File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
93 changes: 93 additions & 0 deletions
93
...in/software/amazon/smithy/rust/codegen/server/smithy/ConstraintViolationSymbolProvider.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
/* | ||
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
* SPDX-License-Identifier: Apache-2.0. | ||
*/ | ||
|
||
package software.amazon.smithy.rust.codegen.server.smithy | ||
|
||
import software.amazon.smithy.codegen.core.Symbol | ||
import software.amazon.smithy.model.Model | ||
import software.amazon.smithy.model.shapes.ListShape | ||
import software.amazon.smithy.model.shapes.MapShape | ||
import software.amazon.smithy.model.shapes.ServiceShape | ||
import software.amazon.smithy.model.shapes.SetShape | ||
import software.amazon.smithy.model.shapes.Shape | ||
import software.amazon.smithy.model.shapes.StructureShape | ||
import software.amazon.smithy.rust.codegen.rustlang.RustReservedWords | ||
import software.amazon.smithy.rust.codegen.rustlang.RustType | ||
import software.amazon.smithy.rust.codegen.smithy.RustSymbolProvider | ||
import software.amazon.smithy.rust.codegen.smithy.Unconstrained | ||
import software.amazon.smithy.rust.codegen.smithy.WrappingSymbolProvider | ||
import software.amazon.smithy.rust.codegen.smithy.canReachConstrainedShape | ||
import software.amazon.smithy.rust.codegen.smithy.generators.builderSymbol | ||
import software.amazon.smithy.rust.codegen.smithy.isConstrained | ||
import software.amazon.smithy.rust.codegen.smithy.rustType | ||
import software.amazon.smithy.rust.codegen.smithy.unconstrainedTypeNameForListOrMapShape | ||
import software.amazon.smithy.rust.codegen.util.toSnakeCase | ||
|
||
// TODO Unit tests. | ||
class ConstraintViolationSymbolProvider( | ||
private val base: RustSymbolProvider, | ||
private val model: Model, | ||
private val serviceShape: ServiceShape, | ||
) : WrappingSymbolProvider(base) { | ||
private val constraintViolationName = "ConstraintViolation" | ||
|
||
private fun unconstrainedSymbolForListOrMapShape(shape: Shape): Symbol { | ||
check(shape is ListShape || shape is MapShape) | ||
|
||
val unconstrainedTypeName = unconstrainedTypeNameForListOrMapShape(shape, serviceShape) | ||
val namespace = "crate::${Unconstrained.namespace}::${RustReservedWords.escapeIfNeeded(unconstrainedTypeName.toSnakeCase())}" | ||
val rustType = RustType.Opaque(constraintViolationName, namespace) | ||
return Symbol.builder() | ||
.rustType(rustType) | ||
.name(rustType.name) | ||
.namespace(rustType.namespace, "::") | ||
.definitionFile(Unconstrained.filename) | ||
.build() | ||
} | ||
|
||
override fun toSymbol(shape: Shape): Symbol = | ||
when (shape) { | ||
is SetShape -> { | ||
// TODO("Set shapes can only contain some simple shapes, but constraint traits on simple shapes are not implemented") | ||
base.toSymbol(shape) | ||
} | ||
is ListShape -> { | ||
check(shape.canReachConstrainedShape(model, base)) | ||
|
||
if (shape.isConstrained(base)) { | ||
// TODO("The `length` constraint trait on list shapes is currently not implemented") | ||
base.toSymbol(shape) | ||
} else { | ||
unconstrainedSymbolForListOrMapShape(shape) | ||
} | ||
} | ||
is MapShape -> { | ||
check(shape.canReachConstrainedShape(model, base)) | ||
|
||
if (shape.isConstrained(base)) { | ||
// TODO("The `length` constraint trait on map shapes is currently not implemented") | ||
base.toSymbol(shape) | ||
} else { | ||
unconstrainedSymbolForListOrMapShape(shape) | ||
} | ||
} | ||
is StructureShape -> { | ||
check(shape.canReachConstrainedShape(model, base)) | ||
|
||
val builderSymbol = shape.builderSymbol(base) | ||
|
||
val namespace = builderSymbol.namespace | ||
val rustType = RustType.Opaque(constraintViolationName, namespace) | ||
Symbol.builder() | ||
.rustType(rustType) | ||
.name(rustType.name) | ||
.namespace(rustType.namespace, "::") | ||
.definitionFile(Unconstrained.filename) | ||
.build() | ||
} | ||
// TODO(https://github.com/awslabs/smithy-rs/pull/1199) Simple shapes can have constraint traits. | ||
else -> base.toSymbol(shape) | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't be better to create a new model to test the features you are implementing here instead of changing
simple.smithy
?