Skip to content

Commit 0843b8a

Browse files
committed
add format registry file
1 parent 258d721 commit 0843b8a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

specs/format-registry.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"int32": {
3+
"definingBody": "OpenAPI",
4+
"definition": "https://spec.openapis.org/oas/latest.html#data-type-format",
5+
"types": ["number"],
6+
"examples": [ -2147483648, -1, 0, 1, 2147483647 ],
7+
"supportedBy": []
8+
},
9+
"int64": {
10+
"definingBody": "OpenAPI",
11+
"definition": "https://spec.openapis.org/oas/latest.html#data-type-format",
12+
"types": ["number"],
13+
"examples": [ -9223372036854775808, -1, 0, 1, 9223372036854775807 ],
14+
"supportedBy": []
15+
},
16+
"float": {
17+
"definingBody": "OpenAPI",
18+
"definition": "https://spec.openapis.org/oas/latest.html#data-type-format",
19+
"types": ["number"],
20+
"examples": [ -3.40282347e+38, -1, -1.17549435e-38, 0, 1.17549435e-38, 1, 3.40282347e+38 ],
21+
"supportedBy": []
22+
},
23+
"double": {
24+
"definingBody": "OpenAPI",
25+
"definition": "https://spec.openapis.org/oas/latest.html#data-type-format",
26+
"types": ["number"],
27+
"examples": [ -1.7976931348623157e+308, -1, -4.9406564584124654e-324, 0, 4.9406564584124654e-324, 1, 1.7976931348623157e+308 ],
28+
"supportedBy": []
29+
},
30+
"password": {
31+
"definingBody": "OpenAPI",
32+
"definition": "https://spec.openapis.org/oas/latest.html#data-type-format",
33+
"types": ["string"],
34+
"examples": ["can be any string", "this format is just an annotation"],
35+
"supportedBy": []
36+
}
37+
}

0 commit comments

Comments
 (0)