mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-19 01:17:18 +02:00
Fix validate-edge-tokens OpenAPI schema (#2055)
* fix: varidate-edge-tokens-schema tokens type This change fixes the description of the 'tokens' array of the validate edge tokens schema. The source of the error was a simple inverson of anyOf and items. * fix: update snapshot
This commit is contained in:
parent
721cd20b5d
commit
518fee1a8c
@ -9,10 +9,12 @@ export const validateEdgeTokensSchema = {
|
|||||||
properties: {
|
properties: {
|
||||||
tokens: {
|
tokens: {
|
||||||
type: 'array',
|
type: 'array',
|
||||||
anyOf: [
|
items: {
|
||||||
{ items: { $ref: '#/components/schemas/edgeTokenSchema' } },
|
anyOf: [
|
||||||
{ items: { type: 'string' } },
|
{ $ref: '#/components/schemas/edgeTokenSchema' },
|
||||||
],
|
{ type: 'string' },
|
||||||
|
],
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
|
@ -3169,18 +3169,16 @@ exports[`should serve the OpenAPI spec 1`] = `
|
|||||||
"additionalProperties": false,
|
"additionalProperties": false,
|
||||||
"properties": {
|
"properties": {
|
||||||
"tokens": {
|
"tokens": {
|
||||||
"anyOf": [
|
"items": {
|
||||||
{
|
"anyOf": [
|
||||||
"items": {
|
{
|
||||||
"$ref": "#/components/schemas/edgeTokenSchema",
|
"$ref": "#/components/schemas/edgeTokenSchema",
|
||||||
},
|
},
|
||||||
},
|
{
|
||||||
{
|
|
||||||
"items": {
|
|
||||||
"type": "string",
|
"type": "string",
|
||||||
},
|
},
|
||||||
},
|
],
|
||||||
],
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user