Skip to content

Commit

Permalink
statically set generated date and date-time example value (#901)
Browse files Browse the repository at this point in the history
  • Loading branch information
sserrata authored Jul 29, 2024
1 parent 6c12cd7 commit 7c048e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const primitives: Primitives = {
string: {
default: () => "string",
email: () => "[email protected]",
date: () => new Date().toISOString().substring(0, 10),
"date-time": () => new Date().toISOString(),
date: () => "2024-07-29",
"date-time": () => "2024-07-29T15:51:28.071Z",
uuid: () => "3fa85f64-5717-4562-b3fc-2c963f66afa6",
hostname: () => "example.com",
ipv4: () => "198.51.100.42",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ const primitives: Primitives = {
string: {
default: () => "string",
email: () => "[email protected]",
date: () => new Date().toISOString().substring(0, 10),
"date-time": () => new Date().toISOString(),
date: () => "2024-07-29",
"date-time": () => "2024-07-29T15:51:28.071Z",
uuid: () => "3fa85f64-5717-4562-b3fc-2c963f66afa6",
hostname: () => "example.com",
ipv4: () => "198.51.100.42",
Expand Down

0 comments on commit 7c048e4

Please sign in to comment.