Skip to content

Commit

Permalink
Add datetime type to swagger doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ddippolito committed Jan 23, 2025
1 parent 427d5b0 commit 3aa4ab3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions spec/swagger_helper.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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 [[email protected]](mailto:[email protected]).
**Base URL**: `/ats-api/v1`
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -399,3 +401,4 @@

config.openapi_format = :yaml
end
# rubocop:enable Layout/SpaceAroundOperators

0 comments on commit 3aa4ab3

Please sign in to comment.