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,16 +21,14 @@ export const meta = {
items: {
type: 'array',
optional: false, nullable: false,
items: {
anyOf: [
{
type: 'string',
},
{
type: 'number',
},
],
},
prefixItems: [
{
type: 'string',
},
{
type: 'number',
},
],
},
example: [[
'example.com',

View File

@ -21,16 +21,14 @@ export const meta = {
items: {
type: 'array',
optional: false, nullable: false,
items: {
anyOf: [
{
type: 'string',
},
{
type: 'number',
},
],
},
prefixItems: [
{
type: 'string',
},
{
type: 'number',
},
],
},
example: [[
'example.com',

View File

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