Skip to content

Commit

Permalink
Merge pull request #4014 from bubba/iso8601-specified-by-url
Browse files Browse the repository at this point in the history
Add specified_by_url for ISO8601 scalars
  • Loading branch information
rmosolgo committed Apr 12, 2022
2 parents 3b1941e + 50379a4 commit e91db31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/graphql/types/iso_8601_date.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module Types
# own Date type.
class ISO8601Date < GraphQL::Schema::Scalar
description "An ISO 8601-encoded date"
specified_by_url "https://tools.ietf.org/html/rfc3339"

# @param value [Date,Time,DateTime,String]
# @return [String]
Expand Down
1 change: 1 addition & 0 deletions lib/graphql/types/iso_8601_date_time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module Types
# own DateTime type.
class ISO8601DateTime < GraphQL::Schema::Scalar
description "An ISO 8601-encoded datetime"
specified_by_url "https://tools.ietf.org/html/rfc3339"

# It's not compatible with Rails' default,
# i.e. ActiveSupport::JSON::Encoder.time_precision (3 by default)
Expand Down

0 comments on commit e91db31

Please sign in to comment.