mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	Strip uknown fields in client requests. closes #245
This commit is contained in:
		
							parent
							
								
									ee76f21a92
								
							
						
					
					
						commit
						4f1824c271
					
				| @ -2,7 +2,7 @@ | ||||
| 
 | ||||
| const joi = require('joi'); | ||||
| 
 | ||||
| const clientMetricsSchema = joi.object().keys({ | ||||
| const clientMetricsSchema = joi.object().options({ stripUnknown: true }).keys({ | ||||
|     appName: joi.string().required(), | ||||
|     instanceId: joi.string().required(), | ||||
|     bucket: joi.object().required().keys({ | ||||
|  | ||||
| @ -2,7 +2,7 @@ | ||||
| 
 | ||||
| const joi = require('joi'); | ||||
| 
 | ||||
| const clientRegisterSchema = joi.object().keys({ | ||||
| const clientRegisterSchema = joi.object().options({ stripUnknown: true }).keys({ | ||||
|     appName: joi.string().required(), | ||||
|     instanceId: joi.string().required(), | ||||
|     sdkVersion: joi.string().optional(), | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user