diff --git a/spec/swagger_helper.rb b/spec/swagger_helper.rb index bf9d87fe2e..7dd90c8093 100644 --- a/spec/swagger_helper.rb +++ b/spec/swagger_helper.rb @@ -1,5 +1,6 @@ require "rails_helper" +# rubocop:disable Layout/SpaceAroundOperators RSpec.configure do |config| # Specify a root folder where Swagger JSON files are generated config.openapi_root = Rails.root.join("swagger").to_s @@ -42,6 +43,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 +102,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: :date-time, + example: "2025-03-13T15:30:00Z", + description: "The end datetime of the vacancy. Must be after the start date.", }, job_title: { type: :string, @@ -399,3 +401,4 @@ config.openapi_format = :yaml end +# rubocop:enable Layout/SpaceAroundOperators