Skip to content

Commit 69ec010

Browse files
committed
test(valibot): switch spec from JSON to YAML
1 parent 6ebc974 commit 69ec010

File tree

7 files changed

+299
-389
lines changed

7 files changed

+299
-389
lines changed

packages/openapi-ts-tests/main/test/plugins/valibot/spec/numberTypeToValibotSchema/const-values.json

Lines changed: 0 additions & 120 deletions
This file was deleted.
Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
openapi: '3.1.0'
2+
info:
3+
title: Number Type Const Values Test API
4+
version: '1.0.0'
5+
paths: {}
6+
components:
7+
schemas:
8+
NumberNoFormat:
9+
type: number
10+
const: 42.5
11+
IntegerNoFormat:
12+
type: integer
13+
const: -1
14+
NumberInt8:
15+
type: number
16+
format: int8
17+
const: 100
18+
NumberInt16:
19+
type: number
20+
format: int16
21+
const: 1000
22+
NumberInt32:
23+
type: number
24+
format: int32
25+
const: 100000
26+
NumberInt64:
27+
type: number
28+
format: int64
29+
const: 1000000000000
30+
NumberUint8:
31+
type: number
32+
format: uint8
33+
const: 200
34+
NumberUint16:
35+
type: number
36+
format: uint16
37+
const: 50000
38+
NumberUint32:
39+
type: number
40+
format: uint32
41+
const: 3000000000
42+
NumberUint64:
43+
type: number
44+
format: uint64
45+
const: 18000000000000000000
46+
IntegerInt8:
47+
type: integer
48+
format: int8
49+
const: -100
50+
IntegerInt16:
51+
type: integer
52+
format: int16
53+
const: -1000
54+
IntegerInt32:
55+
type: integer
56+
format: int32
57+
const: -100000
58+
IntegerInt64:
59+
type: integer
60+
format: int64
61+
const: -1000000000000
62+
IntegerUint8:
63+
type: integer
64+
format: uint8
65+
const: 255
66+
IntegerUint16:
67+
type: integer
68+
format: uint16
69+
const: 65535
70+
IntegerUint32:
71+
type: integer
72+
format: uint32
73+
const: 4294967295
74+
IntegerUint64:
75+
type: integer
76+
format: uint64
77+
const: 1000000000000
78+
StringInt64:
79+
type: string
80+
format: int64
81+
const: '-9223372036854775808'
82+
StringUint64:
83+
type: string
84+
format: uint64
85+
const: '18446744073709551615'
86+
StringInt64n:
87+
type: string
88+
format: int64
89+
const: '-9223372036854775808n'
90+
StringUint64n:
91+
type: string
92+
format: uint64
93+
const: '18446744073709551615n'

packages/openapi-ts-tests/main/test/plugins/valibot/spec/numberTypeToValibotSchema/formats.json

Lines changed: 0 additions & 89 deletions
This file was deleted.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
openapi: '3.1.0'
2+
info:
3+
title: Integer Formats Test
4+
version: '1.0.0'
5+
components:
6+
schemas:
7+
NumberNoFormat:
8+
type: number
9+
NumberInt8:
10+
type: number
11+
format: int8
12+
NumberInt16:
13+
type: number
14+
format: int16
15+
NumberInt32:
16+
type: number
17+
format: int32
18+
NumberInt64:
19+
type: number
20+
format: int64
21+
NumberUint8:
22+
type: number
23+
format: uint8
24+
NumberUint16:
25+
type: number
26+
format: uint16
27+
NumberUint32:
28+
type: number
29+
format: uint32
30+
NumberUint64:
31+
type: number
32+
format: uint64
33+
IntegerNoFormat:
34+
type: integer
35+
IntegerInt8:
36+
type: integer
37+
format: int8
38+
IntegerInt16:
39+
type: integer
40+
format: int16
41+
IntegerInt32:
42+
type: integer
43+
format: int32
44+
IntegerInt64:
45+
type: integer
46+
format: int64
47+
IntegerUint8:
48+
type: integer
49+
format: uint8
50+
IntegerUint16:
51+
type: integer
52+
format: uint16
53+
IntegerUint32:
54+
type: integer
55+
format: uint32
56+
IntegerUint64:
57+
type: integer
58+
format: uint64
59+
StringInt64:
60+
type: string
61+
format: int64
62+
StringUint64:
63+
type: string
64+
format: uint64

0 commit comments

Comments
 (0)