Update converter.ts

This commit is contained in:
Luke Hagar
2024-09-30 08:44:42 -05:00
committed by GitHub
parent 9cfcf7571b
commit 0b20bdff66

View File

@@ -1,37 +1,41 @@
import type { OpenAPIV3_1 } from "openapi-types"; import type { OpenAPIV3_1 } from "openapi-types";
export const example = { export const example = {
numbersMock: { "numbersMock": {
smallInt: -20, "smallInt": -20,
bigInt: 2147483647, "bigInt": 2147483647,
// eslint-disable-next-line @typescript-eslint/no-loss-of-precision // eslint-disable-next-line @typescript-eslint/no-loss-of-precision
unsafeInt: 9999999999999999, "unsafeInt": 9999999999999999,
notInt: 12.2 "notInt": 12.2
}, },
stringsMock: { "stringsMock": {
stringTest: 'Hello World', "stringTest": "Hello World",
isoDate: '1999-12-31', "isoDate": "1999-12-31",
isoDateTime: '1999-12-31T23:59:59Z' "isoDateTime": "1999-12-31T23:59:59Z"
}, },
objectsMock: { "objectsMock": {
child: { child: true }, "child": { "child": true },
childList: [{ child: true }], "childList": [{ "child": true }],
childMatrix: [[{ child: true }]], "childMatrix": [[{ "child": true }]],
mixedObjectsArray: [ "mixedObjectsArray": [
[1, 2, { test: true }], [1, 2, { "test": true }],
{ child: true }, { "child": true },
{ son: true }, { "son": true },
{ son: true }, { "son": true },
{ offspring: true } { "offspring": true }
], ],
nullable: null "nullable": null
}, },
listMock: [1, 2, 3, 4, 5], "listMock": [1, 2, 3, 4, 5],
matrixMock: [ "matrixMock": [
[1, 2], [1, 2],
[3, 4] [3, 4]
], ],
mixedArrayMock: [1, 'two', 3, 'four'] "mixedArrayMock": [1, "two", 3, "four", 5],
"mixedMatrixMock": [
[1, "two"],
[3, "four"]
]
}; };
export type Config = { export type Config = {