Skip to content
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

Modify float and double values to have explicit decimal values #471

Merged
merged 1 commit into from
Jun 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Modify float and double values to have explicit decimal values
skmcgrail committed Jun 23, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 0725a1e0b55c72cdcd014f2563675c4f08fe3bbf
16 changes: 8 additions & 8 deletions smithy-aws-protocol-tests/model/restJson1/http-headers.smithy
Original file line number Diff line number Diff line change
@@ -57,8 +57,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
"X-Short": "123",
"X-Integer": "123",
"X-Long": "123",
"X-Float": "1.0",
"X-Double": "1.0",
"X-Float": "1.1",
"X-Double": "1.1",
"X-IntegerList": "1, 2, 3",
},
body: "",
@@ -67,8 +67,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
headerShort: 123,
headerInteger: 123,
headerLong: 123,
headerFloat: 1.0,
headerDouble: 1.0,
headerFloat: 1.1,
headerDouble: 1.1,
headerIntegerList: [1, 2, 3],
}
},
@@ -150,8 +150,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
"X-Short": "123",
"X-Integer": "123",
"X-Long": "123",
"X-Float": "1.0",
"X-Double": "1.0",
"X-Float": "1.1",
"X-Double": "1.1",
"X-IntegerList": "1, 2, 3",
},
body: "",
@@ -160,8 +160,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
headerShort: 123,
headerInteger: 123,
headerLong: 123,
headerFloat: 1.0,
headerDouble: 1.0,
headerFloat: 1.1,
headerDouble: 1.1,
headerIntegerList: [1, 2, 3],
}
},
6 changes: 3 additions & 3 deletions smithy-aws-protocol-tests/model/restJson1/http-labels.smithy
Original file line number Diff line number Diff line change
@@ -26,15 +26,15 @@ apply HttpRequestWithLabels @httpRequestTests([
documentation: "Sends a GET request that uses URI label bindings",
protocol: restJson1,
method: "GET",
uri: "/HttpRequestWithLabels/string/1/2/3/4.0/5.0/true/2019-12-16T23%3A48%3A18Z",
uri: "/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z",
body: "",
params: {
string: "string",
short: 1,
integer: 2,
long: 3,
float: 4.0,
double: 5.0,
float: 4.1,
double: 5.1,
boolean: true,
timestamp: 1576540098
}
18 changes: 9 additions & 9 deletions smithy-aws-protocol-tests/model/restJson1/http-query.smithy
Original file line number Diff line number Diff line change
@@ -51,16 +51,16 @@ apply AllQueryStringTypes @httpRequestTests([
"IntegerSet=2",
"IntegerSet=3",
"Long=4",
"Float=1",
"Double=1",
"DoubleList=1.0",
"DoubleList=2.0",
"DoubleList=3.0",
"Float=1.1",
"Double=1.1",
"DoubleList=1.1",
"DoubleList=2.1",
"DoubleList=3.1",
"Boolean=true",
"BooleanList=true",
"BooleanList=false",
"BooleanList=true",
"Timestamp=1",
"Timestamp=1970-01-01T00%3A00%3A01Z",
"TimestampList=1970-01-01T00%3A00%3A01Z",
"TimestampList=1970-01-01T00%3A00%3A02Z",
"TimestampList=1970-01-01T00%3A00%3A03Z",
@@ -79,9 +79,9 @@ apply AllQueryStringTypes @httpRequestTests([
queryIntegerList: [1, 2, 3],
queryIntegerSet: [1, 2, 3],
queryLong: 4,
queryFloat: 1,
queryDouble: 1,
queryDoubleList: [1.0, 2.0, 3.0],
queryFloat: 1.1,
queryDouble: 1.1,
queryDoubleList: [1.1, 2.1, 3.1],
queryBoolean: true,
queryBooleanList: [true, false, true],
queryTimestamp: 1,
16 changes: 8 additions & 8 deletions smithy-aws-protocol-tests/model/restXml/http-headers.smithy
Original file line number Diff line number Diff line change
@@ -57,8 +57,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
"X-Short": "123",
"X-Integer": "123",
"X-Long": "123",
"X-Float": "1.0",
"X-Double": "1.0",
"X-Float": "1.1",
"X-Double": "1.1",
"X-IntegerList": "1, 2, 3",
},
body: "",
@@ -67,8 +67,8 @@ apply InputAndOutputWithHeaders @httpRequestTests([
headerShort: 123,
headerInteger: 123,
headerLong: 123,
headerFloat: 1.0,
headerDouble: 1.0,
headerFloat: 1.1,
headerDouble: 1.1,
headerIntegerList: [1, 2, 3],
}
},
@@ -150,8 +150,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
"X-Short": "123",
"X-Integer": "123",
"X-Long": "123",
"X-Float": "1.0",
"X-Double": "1.0",
"X-Float": "1.1",
"X-Double": "1.1",
"X-IntegerList": "1, 2, 3",
},
body: "",
@@ -160,8 +160,8 @@ apply InputAndOutputWithHeaders @httpResponseTests([
headerShort: 123,
headerInteger: 123,
headerLong: 123,
headerFloat: 1.0,
headerDouble: 1.0,
headerFloat: 1.1,
headerDouble: 1.1,
headerIntegerList: [1, 2, 3],
}
},
6 changes: 3 additions & 3 deletions smithy-aws-protocol-tests/model/restXml/http-labels.smithy
Original file line number Diff line number Diff line change
@@ -26,15 +26,15 @@ apply HttpRequestWithLabels @httpRequestTests([
documentation: "Sends a GET request that uses URI label bindings",
protocol: restXml,
method: "GET",
uri: "/HttpRequestWithLabels/string/1/2/3/4.0/5.0/true/2019-12-16T23%3A48%3A18Z",
uri: "/HttpRequestWithLabels/string/1/2/3/4.1/5.1/true/2019-12-16T23%3A48%3A18Z",
body: "",
params: {
string: "string",
short: 1,
integer: 2,
long: 3,
float: 4.0,
double: 5.0,
float: 4.1,
double: 5.1,
boolean: true,
timestamp: 1576540098
}
18 changes: 9 additions & 9 deletions smithy-aws-protocol-tests/model/restXml/http-query.smithy
Original file line number Diff line number Diff line change
@@ -51,16 +51,16 @@ apply AllQueryStringTypes @httpRequestTests([
"IntegerSet=2",
"IntegerSet=3",
"Long=4",
"Float=1",
"Double=1",
"DoubleList=1.0",
"DoubleList=2.0",
"DoubleList=3.0",
"Float=1.1",
"Double=1.1",
"DoubleList=1.1",
"DoubleList=2.1",
"DoubleList=3.1",
"Boolean=true",
"BooleanList=true",
"BooleanList=false",
"BooleanList=true",
"Timestamp=1",
"Timestamp=1970-01-01T00%3A00%3A01Z",
"TimestampList=1970-01-01T00%3A00%3A01Z",
"TimestampList=1970-01-01T00%3A00%3A02Z",
"TimestampList=1970-01-01T00%3A00%3A03Z",
@@ -79,9 +79,9 @@ apply AllQueryStringTypes @httpRequestTests([
queryIntegerList: [1, 2, 3],
queryIntegerSet: [1, 2, 3],
queryLong: 4,
queryFloat: 1,
queryDouble: 1,
queryDoubleList: [1.0, 2.0, 3.0],
queryFloat: 1.1,
queryDouble: 1.1,
queryDoubleList: [1.1, 2.1, 3.1],
queryBoolean: true,
queryBooleanList: [true, false, true],
queryTimestamp: 1,