fix(backend): represent tuples with `prefixItems`
This commit is contained in:
parent
255c8bd1b9
commit
619becd543
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue