mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
		| @@ -448,7 +448,10 @@ describe('API', async () => { | ||||
|  | ||||
| 					let body = {}; | ||||
| 					let type = 'json'; | ||||
| 					if (context[method].hasOwnProperty('requestBody') && context[method].requestBody.content['application/json']) { | ||||
| 					if ( | ||||
| 						context[method].hasOwnProperty('requestBody') && | ||||
| 						context[method].requestBody.required !== false && | ||||
| 						context[method].requestBody.content['application/json']) { | ||||
| 						body = buildBody(context[method].requestBody.content['application/json'].schema.properties); | ||||
| 					} else if (context[method].hasOwnProperty('requestBody') && context[method].requestBody.content['multipart/form-data']) { | ||||
| 						type = 'form'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user