mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: validate min constraint values in openapi (#4179)
This commit is contained in:
		
							parent
							
								
									e0f5d2c600
								
							
						
					
					
						commit
						23981407ef
					
				@ -39,6 +39,7 @@ export const constraintSchemaBase = {
 | 
			
		||||
            items: {
 | 
			
		||||
                type: 'string',
 | 
			
		||||
            },
 | 
			
		||||
            minItems: 1,
 | 
			
		||||
            example: ['my-app', 'my-other-app'],
 | 
			
		||||
        },
 | 
			
		||||
        value: {
 | 
			
		||||
 | 
			
		||||
@ -37,7 +37,7 @@ export const strategyConstraint = (): Arbitrary<ConstraintSchema> =>
 | 
			
		||||
        operator: fc.constantFrom(...ALL_OPERATORS),
 | 
			
		||||
        caseInsensitive: fc.boolean(),
 | 
			
		||||
        inverted: fc.boolean(),
 | 
			
		||||
        values: fc.array(fc.string()),
 | 
			
		||||
        values: fc.array(fc.string(), { minLength: 1 }),
 | 
			
		||||
        value: fc.string(),
 | 
			
		||||
    });
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user