Skip to content

Commit c2548af

Browse files
committed
add test spec for the new "useDateType" flag
1 parent a943179 commit c2548af

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

test/spec/v3_datetype.yaml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
openapi: 3.0.1
2+
info:
3+
title: Data Type Test Spec
4+
version: "1.0"
5+
description: OpenAPI v3 (Swagger) file representing the CoBaLo API
6+
servers:
7+
- url: /api/v1
8+
paths:
9+
components:
10+
schemas:
11+
ParentType:
12+
title: Parent
13+
type: object
14+
properties:
15+
name: string
16+
ExampleType:
17+
title: ExampleType
18+
type: object
19+
properties:
20+
id:
21+
type: integer
22+
dateTime:
23+
type: string
24+
format: date-time
25+
example: "2012-10-27T17:18:30.966Z"
26+
date:
27+
type: string
28+
format: date
29+
example: "2012-10-27"
30+
dateTimeNullable:
31+
type: string
32+
format: date
33+
nullable: true
34+
example: "2012-10-27"
35+
dateNullable:
36+
type: string
37+
format: date
38+
nullable: true
39+
example: "2012-10-27"
40+
InheritType:
41+
title: InheritType
42+
allOf:
43+
- $ref: "#/components/schemas/ParentType"
44+
- $ref: "#/components/schemas/ExampleType"
45+
WrappedInArray:
46+
title: WrappedInArray
47+
type: array
48+
items:
49+
type: object
50+
properties:
51+
dateTime:
52+
type: string
53+
format: date-time
54+
example: "2012-10-27T17:18:30.966Z"
55+
date:
56+
type: string
57+
format: date
58+
example: "2012-10-27"
59+
dateTimeNullable:
60+
type: string
61+
format: date
62+
nullable: true
63+
example: "2012-10-27"
64+
dateNullable:
65+
type: string
66+
format: date
67+
nullable: true
68+
example: "2012-10-27"
69+
70+

0 commit comments

Comments
 (0)