mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01: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
							
								
									368861c162
								
							
						
					
					
						commit
						0540a15b2d
					
				@ -9,12 +9,14 @@ export const validateEdgeTokensSchema = {
 | 
			
		||||
    properties: {
 | 
			
		||||
        tokens: {
 | 
			
		||||
            type: 'array',
 | 
			
		||||
            items: {
 | 
			
		||||
                anyOf: [
 | 
			
		||||
                { items: { $ref: '#/components/schemas/edgeTokenSchema' } },
 | 
			
		||||
                { items: { type: 'string' } },
 | 
			
		||||
                    { $ref: '#/components/schemas/edgeTokenSchema' },
 | 
			
		||||
                    { type: 'string' },
 | 
			
		||||
                ],
 | 
			
		||||
            },
 | 
			
		||||
        },
 | 
			
		||||
    },
 | 
			
		||||
    components: {
 | 
			
		||||
        schemas: {
 | 
			
		||||
            edgeTokenSchema,
 | 
			
		||||
 | 
			
		||||
@ -3169,18 +3169,16 @@ exports[`should serve the OpenAPI spec 1`] = `
 | 
			
		||||
        "additionalProperties": false,
 | 
			
		||||
        "properties": {
 | 
			
		||||
          "tokens": {
 | 
			
		||||
            "items": {
 | 
			
		||||
              "anyOf": [
 | 
			
		||||
                {
 | 
			
		||||
                "items": {
 | 
			
		||||
                  "$ref": "#/components/schemas/edgeTokenSchema",
 | 
			
		||||
                },
 | 
			
		||||
              },
 | 
			
		||||
                {
 | 
			
		||||
                "items": {
 | 
			
		||||
                  "type": "string",
 | 
			
		||||
                },
 | 
			
		||||
              },
 | 
			
		||||
              ],
 | 
			
		||||
            },
 | 
			
		||||
            "type": "array",
 | 
			
		||||
          },
 | 
			
		||||
        },
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user