From c59d93c81e617ac610c642aa1eaf95672b09bc0d Mon Sep 17 00:00:00 2001 From: Davide Dippolito Date: Thu, 23 Jan 2025 10:31:27 +0000 Subject: [PATCH] Add datetime type to swagger doc --- spec/swagger_helper.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/swagger_helper.rb b/spec/swagger_helper.rb index bf9d87fe2e..e71af3f8c3 100644 --- a/spec/swagger_helper.rb +++ b/spec/swagger_helper.rb @@ -42,6 +42,7 @@ This ensures that only approved clients can create, update, or remove job listings. If you ever need a new or replacement key, let us know, and we’ll assist you with the process. + You can reach us at [teachingvacancies.ats@education.gov.uk](mailto:teachingvacancies.ats@education.gov.uk). **Base URL**: `/ats-api/v1` @@ -100,9 +101,9 @@ }, expires_at: { type: :string, - format: :date, - example: "2025-03-13", - description: "The end date of the vacancy. Must be after the start date.", + format: :datetime, + example: "2025-03-13T15:30:00Z", + description: "The end datetime of the vacancy. Must be after the start date.", }, job_title: { type: :string,