Skip to content

Commit a33f048

Browse files
committed
temporarily disable type-casting for dates
1 parent 19c7c53 commit a33f048

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

samples/client/petstore/elixir/test/format_test.exs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ defmodule FormatTest do
3333
string: "Hello world!",
3434
byte: "U3dhZ2dlciByb2Nrcw==",
3535
binary: <<1, 2, 3>>,
36-
date: ~D[2013-10-20],
37-
dateTime: ~U[2013-10-20T18:20:30Z],
36+
date: "2013-10-20",
37+
dateTime: "2013-10-20T19:20:30+01:00",
3838
uuid: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
3939
password: "green?horse",
4040
pattern_with_digits: "1234567890",
@@ -73,7 +73,7 @@ defmodule FormatTest do
7373
string: nil,
7474
byte: "U3dhZ2dlciByb2Nrcw==",
7575
binary: nil,
76-
date: ~D[2013-10-20],
76+
date: "2013-10-20",
7777
dateTime: nil,
7878
uuid: nil,
7979
password: "green?horse",

samples/client/petstore/elixir/test/mixed_properties_and_additional_properties_class_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ defmodule MixedPropertiesAndAdditionalPropertiesClass do
1515
|> Model.decode() ==
1616
%Model{
1717
uuid: "3fa85f64-5717-4562-b3fc-2c963f66afa6",
18-
dateTime: ~U[2013-10-20T18:20:30Z],
18+
dateTime: "2013-10-20T19:20:30+01:00",
1919
map: %{
2020
# TODO values should be Dog and Cat structs instead of an Animal
2121
"doggie" => %Animal{

0 commit comments

Comments
 (0)