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

[Hub Generated] add missing date-time format specifier across map clients for cleaner codegen with datetime types #15454

Merged
merged 2 commits into from
Aug 2, 2021
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
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"created": {
"description": "The created timestamp.",
"type": "string",
"format": "date-time",
"readOnly": true
},
"error": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@
"createdTimestamp": {
"description": "The created timestamp for the alias.",
"type": "string",
"format": "date-time",
"readOnly": true
},
"aliasId": {
Expand All @@ -258,6 +259,7 @@
"lastUpdatedTimestamp": {
"description": "The timestamp of the last time the alias was assigned.",
"type": "string",
"format": "date-time",
"readOnly": true
}
}
Expand Down Expand Up @@ -304,6 +306,7 @@
"lastUpdatedTimestamp": {
"description": "The timestamp of the last time the alias was assigned.",
"type": "string",
"format": "date-time",
"readOnly": true
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@
"name": "timeStamp",
"in": "query",
"description": "The desired date and time of the requested tile. This parameter must be specified in the standard date-time format (e.g. 2019-11-14T16:03:00-08:00), as defined by [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601). This parameter is only supported when tilesetId parameter is set to one of the values below.\n \n* microsoft.weather.infrared.main: We provide tiles up to 3 hours in the past. Tiles are available in 10-minute intervals. We round the timeStamp value to the nearest 10-minute time frame.\n* microsoft.weather.radar.main: We provide tiles up to 1.5 hours in the past and up to 2 hours in the future. Tiles are available in 5-minute intervals. We round the timeStamp value to the nearest 5-minute time frame.",
"type": "string"
"type": "string",
"format": "date-time"
},
{
"name": "tileSize",
Expand Down
14 changes: 12 additions & 2 deletions specification/maps/data-plane/Weather/preview/1.0/weather.json
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,8 @@
"properties": {
"date": {
"type": "string",
"description": "Date and time of the forecast in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00."
"description": "Date and time of the forecast in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00.",
"format": "date-time"
},
"iconCode": {
"type": "integer",
Expand Down Expand Up @@ -794,6 +795,7 @@
"properties": {
"startTime": {
"type": "string",
"format": "date-time",
"description": "The date and time for the start of the interval in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00."
},
"minute": {
Expand Down Expand Up @@ -889,10 +891,11 @@
"properties": {
"date": {
"type": "string",
"description": "Date and time of the forecast in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00."
"description": "Date of the forecast as example, 2019-10-27T00:00:00"
},
"effectiveDate": {
"type": "string",
"format": "date-time",
"description": "Date and time of the beginning of the forecast quarter displayed in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00."
},
"quarter": {
Expand Down Expand Up @@ -1137,6 +1140,7 @@
"properties": {
"dateTime": {
"type": "string",
"format": "date-time",
"description": "Date and time of the current observation displayed in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00."
},
"phrase": {
Expand Down Expand Up @@ -1248,10 +1252,12 @@
"properties": {
"startDate": {
"type": "string",
"format": "date-time",
"description": "Date and time that the summary is in effect, displayed in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00."
},
"endDate": {
"type": "string",
"format": "date-time",
"description": "Date and time that the summary period ends, displayed in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00."
},
"severity": {
Expand Down Expand Up @@ -1315,6 +1321,7 @@
"properties": {
"date": {
"type": "string",
"format": "date-time",
"description": "Date and time of the current observation displayed in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00."
},
"temperature": {
Expand Down Expand Up @@ -1771,10 +1778,12 @@
},
"startTime": {
"type": "string",
"format": "date-time",
"description": "The start date and time of the alert in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00. If the alert crosses multiple time zones the returned time in the response is the local time to the requested coordinate location."
},
"endTime": {
"type": "string",
"format": "date-time",
"description": "The end date and time of the alert in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00. If the alert crosses multiple time zones the returned time in the response is the local time to the requested coordinate location."
},
"latestStatus": {
Expand Down Expand Up @@ -1885,6 +1894,7 @@
},
"dateTime": {
"type": "string",
"format": "date-time",
"description": "Date and time of the current observation displayed in ISO 8601 format, for example, 2019-10-27T19:39:57-08:00."
},
"value": {
Expand Down