You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes shapes created in smithy are quite complex and it is not obvious at first glance how given shape looks like in the end without navigating to every mixin in the hierarchy.
Proposed solution
It would be if smithy-cli could resolve a given shape given its ID.
This could be similar to what smithy-cli ast --flatten is doing but limited to only given shape id.
Another way to approach this would be to extend select command with an ability to return entire shapes not just IDs.
At first, this could return the json representation of the smithy model but ideally there would be an option to present it in a more user-friendly way. E.g. as a smithy shape.
Example:
given:
@mixin
structure MyTrait {
name: String
}
structure MyStruct with [MyTrait] {
age: Int
}
would print:
structure MyStruct {
name: String
age: Int
}
The text was updated successfully, but these errors were encountered:
Hi,
This is a feature request.
Use case
Sometimes shapes created in smithy are quite complex and it is not obvious at first glance how given shape looks like in the end without navigating to every mixin in the hierarchy.
Proposed solution
It would be if smithy-cli could resolve a given shape given its
ID
.This could be similar to what
smithy-cli ast --flatten
is doing but limited to only given shape id.Another way to approach this would be to extend
select
command with an ability to return entire shapes not just IDs.At first, this could return the json representation of the smithy model but ideally there would be an option to present it in a more user-friendly way. E.g. as a smithy shape.
Example:
given:
would print:
The text was updated successfully, but these errors were encountered: