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

[Batch] Switch contentLength from int64 to string #29656

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion specification/batch/Azure.Batch/common.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ alias FileResponseHeaders = {

@header("Content-Length")
@doc("The length of the file.")
contentLength: int64;
contentLength: string;

...BatchEtagResponseHeaders;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"properties": {
"creationTime": "2014-09-19T21:56:17.679195Z",
"lastModified": "2014-09-19T21:56:17.679195Z",
"contentLength": 1813,
"contentLength": "1813",
"contentType": "application/octet-stream"
}
},
Expand All @@ -37,7 +37,7 @@
"properties": {
"creationTime": "2014-09-19T21:56:17.5590855Z",
"lastModified": "2014-09-19T21:56:17.5590855Z",
"contentLength": 0,
"contentLength": "0",
"contentType": "application/octet-stream"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"properties": {
"creationTime": "2014-09-19T21:56:17.679195Z",
"lastModified": "2014-09-19T21:56:17.679195Z",
"contentLength": 1813,
"contentLength": "1813",
"contentType": "application/octet-stream"
}
},
Expand All @@ -32,7 +32,7 @@
"properties": {
"creationTime": "2014-09-19T21:56:17.5590855Z",
"lastModified": "2014-09-19T21:56:17.5590855Z",
"contentLength": 0,
"contentLength": "0",
"contentType": "application/octet-stream"
}
}
Expand Down
2 changes: 1 addition & 1 deletion specification/batch/Azure.Batch/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,7 @@ model FileProperties {
lastModified: utcDateTime;

@doc("The length of the file.")
contentLength: int64;
contentLength: string;

@doc("The content type of the file.")
contentType?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2570,8 +2570,7 @@
},
"headers": {
"Content-Length": {
"type": "integer",
"format": "int64",
"type": "string",
"description": "The length of the file."
},
"ETag": {
Expand Down Expand Up @@ -2815,8 +2814,7 @@
"description": "The request has succeeded.",
"headers": {
"Content-Length": {
"type": "integer",
"format": "int64",
"type": "string",
"description": "The length of the file."
},
"ETag": {
Expand Down Expand Up @@ -7031,8 +7029,7 @@
},
"headers": {
"Content-Length": {
"type": "integer",
"format": "int64",
"type": "string",
"description": "The length of the file."
},
"ETag": {
Expand Down Expand Up @@ -7276,8 +7273,7 @@
"description": "The request has succeeded.",
"headers": {
"Content-Length": {
"type": "integer",
"format": "int64",
"type": "string",
"description": "The length of the file."
},
"ETag": {
Expand Down Expand Up @@ -14502,8 +14498,7 @@
"description": "The time at which the file was last modified."
},
"contentLength": {
"type": "integer",
"format": "int64",
"type": "string",
"description": "The length of the file."
},
"contentType": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"properties": {
"creationTime": "2014-09-19T21:56:17.679195Z",
"lastModified": "2014-09-19T21:56:17.679195Z",
"contentLength": 1813,
"contentLength": "1813",
"contentType": "application/octet-stream"
}
},
Expand All @@ -37,7 +37,7 @@
"properties": {
"creationTime": "2014-09-19T21:56:17.5590855Z",
"lastModified": "2014-09-19T21:56:17.5590855Z",
"contentLength": 0,
"contentLength": "0",
"contentType": "application/octet-stream"
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"properties": {
"creationTime": "2014-09-19T21:56:17.679195Z",
"lastModified": "2014-09-19T21:56:17.679195Z",
"contentLength": 1813,
"contentLength": "1813",
"contentType": "application/octet-stream"
}
},
Expand All @@ -32,7 +32,7 @@
"properties": {
"creationTime": "2014-09-19T21:56:17.5590855Z",
"lastModified": "2014-09-19T21:56:17.5590855Z",
"contentLength": 0,
"contentLength": "0",
"contentType": "application/octet-stream"
}
}
Expand Down