Skip to content

Commit

Permalink
Add dates
Browse files Browse the repository at this point in the history
  • Loading branch information
bhelx committed Jul 23, 2024
1 parent 8bd9069 commit 25b8c78
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions runner/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const EmbeddedObject = {
aStringArray: ["Hello", "🌍", "World!"],
anEnumArray: ["option1", "option2", "option3"],
anIntArray: [1, 2, 3],
aDate: "2024-07-23T16:03:34+0000",
};

const KitchenSink = {
Expand All @@ -18,6 +19,7 @@ const KitchenSink = {
anEnum: "option1",
anEmbeddedObject: EmbeddedObject,
anEmbeddedObjectArray: [EmbeddedObject, EmbeddedObject],
aDate: "2024-07-23T16:03:34+0000",
};

export function test() {
Expand Down
10 changes: 10 additions & 0 deletions schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ schemas:
- anEnumArray
- aStringArray
- anIntArray
- aDate
properties:
- name: aBoolArray
description: an array of bools
Expand All @@ -104,6 +105,10 @@ schemas:
type: array
items:
type: integer
- name: aDate
description: a date
type: string
format: date-time
- name: AStringEnum
description: A string enum
type: string
Expand All @@ -124,6 +129,7 @@ schemas:
- anEmbeddedObject
- anEmbeddedObjectArray
- anUntypedObject
- aDate
properties:
- name: anOptionalString
type: string
Expand Down Expand Up @@ -159,3 +165,7 @@ schemas:
type: array
items:
$ref: "#/schemas/EmbeddedObject"
- name: aDate
description: a date
type: string
format: date-time

0 comments on commit 25b8c78

Please sign in to comment.