fix(backend): represent tuples with `prefixItems`

This commit is contained in:
zyoshoka 2024-08-26 17:44:31 +09:00
parent 255c8bd1b9
commit 619becd543
No known key found for this signature in database
3 changed files with 18 additions and 22 deletions

View File

@ -21,8 +21,7 @@ export const meta = {
items: { items: {
type: 'array', type: 'array',
optional: false, nullable: false, optional: false, nullable: false,
items: { prefixItems: [
anyOf: [
{ {
type: 'string', type: 'string',
}, },
@ -31,7 +30,6 @@ export const meta = {
}, },
], ],
}, },
},
example: [[ example: [[
'example.com', 'example.com',
12, 12,

View File

@ -21,8 +21,7 @@ export const meta = {
items: { items: {
type: 'array', type: 'array',
optional: false, nullable: false, optional: false, nullable: false,
items: { prefixItems: [
anyOf: [
{ {
type: 'string', type: 'string',
}, },
@ -31,7 +30,6 @@ export const meta = {
}, },
], ],
}, },
},
example: [[ example: [[
'example.com', 'example.com',
12, 12,

View File

@ -8217,7 +8217,7 @@ export type operations = {
/** @description OK (with results) */ /** @description OK (with results) */
200: { 200: {
content: { content: {
'application/json': ((string | number)[])[]; 'application/json': [string, number][];
}; };
}; };
/** @description Client error */ /** @description Client error */
@ -8263,7 +8263,7 @@ export type operations = {
/** @description OK (with results) */ /** @description OK (with results) */
200: { 200: {
content: { content: {
'application/json': ((string | number)[])[]; 'application/json': [string, number][];
}; };
}; };
/** @description Client error */ /** @description Client error */