Skip to content

Commit

Permalink
Use 1.0 for smithy-build version completion (#203)
Browse files Browse the repository at this point in the history
Was just `1`, which doesn't match the docs' default of `1.0`.
  • Loading branch information
milesziemer authored Feb 25, 2025
1 parent a2f3125 commit 7c33ab1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ structure SmithyBuildJson {
maven: Maven
}

@default("1")
@default("1.0")
string SmithyBuildVersion

map Projections {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public void completesSmithyBuildJsonTopLevel() {

assertThat(items, containsInAnyOrder(
hasLabelAndEditText("version", """
"version": "1"
"version": "1.0"
"""),
hasLabelAndEditText("outputDirectory", """
"outputDirectory": ""
Expand Down Expand Up @@ -231,7 +231,7 @@ public void matchesStringKeys() {

assertThat(items, containsInAnyOrder(
hasLabelAndEditText("version", """
"version": "1"
"version": "1.0"
""")
));
}
Expand All @@ -247,7 +247,7 @@ public void matchesNonStringKeys() {

assertThat(items, containsInAnyOrder(
hasLabelAndEditText("version", """
"version": "1"
"version": "1.0"
""")
));
}
Expand All @@ -273,8 +273,8 @@ public void completesKeyValues() {
var items = getCompItems(text, BuildFileType.SMITHY_BUILD);

assertThat(items, containsInAnyOrder(
hasLabelAndEditText("\"1\"", """
"1"
hasLabelAndEditText("\"1.0\"", """
"1.0"
"""),
hasLabelAndEditText("false", "false"),
hasLabelAndEditText("true", "true"),
Expand Down

0 comments on commit 7c33ab1

Please # to comment.