Skip to content

Commit

Permalink
feat: Add missing date-time format to time fields
Browse files Browse the repository at this point in the history
  • Loading branch information
Helcaraxan committed Jun 30, 2022
1 parent dcd121e commit a3403d7
Show file tree
Hide file tree
Showing 42 changed files with 179 additions and 101 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@
},
"started_at": {
"type": "string",
"format": "date-time",
"description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"completed_at": {
"type": "string",
"format": "date-time",
"description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"output": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,14 @@
},
"started_at": {
"type": "string",
"format": "date-time",
"description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"completed_at": {
"type": ["string", "null"],
"oneOf": [
{"type": "null"},
{"type": "string", "format": "date-time"}
],
"description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"output": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,14 @@
},
"started_at": {
"type": "string",
"format": "date-time",
"description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"completed_at": {
"type": ["string", "null"],
"oneOf": [
{"type": "null"},
{"type": "string", "format": "date-time"}
],
"description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"output": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@
},
"started_at": {
"type": "string",
"format": "date-time",
"description": "The time that the check run began. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"completed_at": {
"type": "string",
"format": "date-time",
"description": "The time the check completed. This is a timestamp in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format: `YYYY-MM-DDTHH:MM:SSZ`."
},
"output": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"type": "string",
"description": "The SHA of the commit to which the comment applies."
},
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"author_association": {
"$ref": "common/author_association.schema.json"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"production_environment": { "type": "boolean" },
"description": { "type": ["string", "null"] },
"creator": { "$ref": "user.schema.json" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"statuses_url": { "type": "string", "format": "uri" },
"repository_url": { "type": "string", "format": "uri" },
"performed_via_github_app": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,19 @@
"name": { "type": "string" },
"description": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string" },
"updated_at": { "type": "string", "format": "date-time" },
"slug": { "type": "string" },
"is_answerable": { "type": "boolean" }
},
"additionalProperties": false
},
"answer_html_url": { "type": ["string", "null"] },
"answer_chosen_at": { "type": ["string", "null"] },
"answer_chosen_at": {
"oneOf": [
{"type": "null"},
{"type": "string", "format": "date-time"}
]
},
"answer_chosen_by": {
"oneOf": [{ "$ref": "user.schema.json" }, { "type": "null" }]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
"affected_package_name": { "type": "string" },
"dismisser": { "$ref": "user.schema.json" },
"dismiss_reason": { "type": "string" },
"dismissed_at": { "type": "string" },
"dismissed_at": { "type": "string", "format": "date-time" },
"severity": { "type": "string" },
"ghsa_id": { "type": "string" },
"external_reference": { "type": "string", "format": "uri" },
"external_identifier": { "type": "string" },
"fixed_in": { "type": "string" },
"fixed_at": { "type": "string", "format": "date-time" },
"fix_reason": { "type": "string" },
"created_at": { "type": "string" }
"created_at": { "type": "string", "format": "date-timme" }
},
"additionalProperties": false,
"description": "The security alert of the vulnerable dependency.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,20 @@
"title": { "type": "string" },
"user": { "$ref": "user.schema.json" },
"body": { "type": "string" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"closed_at": { "type": ["string", "null"] },
"merged_at": { "type": ["string", "null"] },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"closed_at": {
"oneOf": [
{"type": "null"},
{"type": "string", "format": "date-time"}
]
},
"merged_at": {
"oneOf": [
{"type": "null"},
{"type": "string", "format": "date-time"}
]
},
"merge_commit_sha": { "type": ["string", "null"] },
"assignee": {
"oneOf": [{ "$ref": "user.schema.json" }, { "type": "null" }]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"type": "object",
"properties": {
"node_id": { "type": "string" },
"created_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"description": { "type": "string" },
"monthly_price_in_cents": { "type": "integer" },
"monthly_price_in_dollars": { "type": "integer" },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,13 @@
"type": ["string", "null"],
"description": "The name of the runner group that is running this job. This will be `null` as long as `workflow_job[status]` is `queued`."
},
"started_at": { "type": "string" },
"completed_at": { "type": ["string", "null"] }
"started_at": { "type": "string", "format": "date-time" },
"completed_at": {
"oneOf": [
{"type": "null"},
{"type": "string", "format": "date-time"}
]
}
},
"additionalProperties": false,
"title": "Workflow Job"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"enum": ["failure", "skipped", "success"]
},
"number": { "type": "integer" },
"started_at": { "type": "string" },
"completed_at": { "type": "string" }
"started_at": { "type": "string", "format": "date-time" },
"completed_at": { "type": "string", "format": "date-time" }
},
"additionalProperties": false,
"title": "Workflow Step (Completed)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"status": { "type": "string", "enum": ["in_progress"] },
"conclusion": { "type": "null" },
"number": { "type": "integer" },
"started_at": { "type": "string" },
"started_at": { "type": "string", "format": "date-time" },
"completed_at": { "type": "null" }
},
"additionalProperties": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"url": { "type": "string", "format": "uri" },
"title": { "type": "string" },
"verified": { "type": "boolean" },
"created_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"read_only": { "type": "boolean" }
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"url": { "type": "string", "format": "uri" },
"title": { "type": "string" },
"verified": { "type": "boolean" },
"created_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"read_only": { "type": "boolean" }
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"type": "string",
"description": "The optional link added to the status."
},
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"deployment_url": { "type": "string", "format": "uri" },
"repository_url": { "type": "string", "format": "uri" },
"performed_via_github_app": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"name": { "type": "string" },
"description": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string" },
"updated_at": { "type": "string", "format": "date-time" },
"slug": { "type": "string" },
"is_answerable": { "type": "boolean" }
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"$ref": "common/author_association.schema.json"
},
"user": { "$ref": "common/user.schema.json" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"body": { "type": "string" },
"reactions": { "$ref": "common/reactions.schema.json" }
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
"$ref": "common/author_association.schema.json"
},
"user": { "$ref": "common/user.schema.json" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"body": { "type": "string" },
"reactions": { "$ref": "common/reactions.schema.json" }
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
"$ref": "common/author_association.schema.json"
},
"user": { "$ref": "common/user.schema.json" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"body": { "type": "string" },
"reactions": { "$ref": "common/reactions.schema.json" }
},
Expand Down
4 changes: 2 additions & 2 deletions payload-schemas/api.github.com/meta/deleted.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
},
"additionalProperties": false
},
"updated_at": { "type": "string" },
"created_at": { "type": "string" }
"updated_at": { "type": "string", "format": "date-time" },
"created_at": { "type": "string", "format": "date-time" }
},
"additionalProperties": false
},
Expand Down
16 changes: 8 additions & 8 deletions payload-schemas/api.github.com/package/published.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"ecosystem": { "type": "string" },
"package_type": { "type": "string" },
"html_url": { "type": "string", "format": "uri" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"owner": { "$ref": "common/user.schema.json" },
"package_version": {
"type": "object",
Expand Down Expand Up @@ -93,8 +93,8 @@
"draft": { "type": "boolean" },
"author": { "$ref": "common/user.schema.json" },
"prerelease": { "type": "boolean" },
"created_at": { "type": "string" },
"published_at": { "type": "string" }
"created_at": { "type": "string", "format": "date-time" },
"published_at": { "type": "string", "format": "date-time" }
},
"additionalProperties": false
},
Expand All @@ -105,8 +105,8 @@
"target_oid": { "type": "string" },
"draft": { "type": "boolean" },
"prerelease": { "type": "boolean" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"metadata": { "type": "array", "items": {} },
"docker_metadata": { "type": "array", "items": {} },
"package_files": {
Expand Down Expand Up @@ -136,8 +136,8 @@
"content_type": { "type": "string" },
"state": { "type": "string" },
"size": { "type": "integer" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" }
},
"additionalProperties": false
}
Expand Down
16 changes: 8 additions & 8 deletions payload-schemas/api.github.com/package/updated.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"ecosystem": { "type": "string" },
"package_type": { "type": "string" },
"html_url": { "type": "string", "format": "uri" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"owner": { "$ref": "common/user.schema.json" },
"package_version": {
"type": "object",
Expand Down Expand Up @@ -93,8 +93,8 @@
"draft": { "type": "boolean" },
"author": { "$ref": "common/user.schema.json" },
"prerelease": { "type": "boolean" },
"created_at": { "type": "string" },
"published_at": { "type": "string" }
"created_at": { "type": "string", "format": "date-time" },
"published_at": { "type": "string", "format": "date-time" }
},
"additionalProperties": false
},
Expand All @@ -105,8 +105,8 @@
"target_oid": { "type": "string" },
"draft": { "type": "boolean" },
"prerelease": { "type": "boolean" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" },
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" },
"metadata": { "type": "array", "items": {} },
"docker_metadata": { "type": "array", "items": {} },
"package_files": {
Expand Down Expand Up @@ -136,8 +136,8 @@
"content_type": { "type": "string" },
"state": { "type": "string" },
"size": { "type": "integer" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" }
},
"additionalProperties": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"pusher": { "$ref": "common/user.schema.json" },
"commit": { "type": "string" },
"duration": { "type": "integer" },
"created_at": { "type": "string" },
"updated_at": { "type": "string" }
"created_at": { "type": "string", "format": "date-time" },
"updated_at": { "type": "string", "format": "date-time" }
},
"additionalProperties": false
},
Expand Down
4 changes: 2 additions & 2 deletions payload-schemas/api.github.com/ping/event.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
},
"additionalProperties": false
},
"updated_at": { "type": "string" },
"created_at": { "type": "string" },
"updated_at": { "type": "string", "format": "date-time" },
"created_at": { "type": "string", "format": "date-time" },
"url": { "type": "string", "format": "uri" },
"test_url": { "type": "string", "format": "uri" },
"ping_url": { "type": "string", "format": "uri" },
Expand Down
Loading

0 comments on commit a3403d7

Please sign in to comment.