mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Deref object in form data params
Dereference form data params
This commit is contained in:
@@ -1820,6 +1820,10 @@ module.exports = {
|
||||
bodyData = this.convertToPmBodyData(contentObj[FORM_DATA], requestType, FORM_DATA,
|
||||
PARAMETER_SOURCE.REQUEST, options.indentCharacter, components, options, schemaCache);
|
||||
encoding = contentObj[FORM_DATA].encoding ? contentObj[FORM_DATA].encoding : {};
|
||||
|
||||
if (contentObj[FORM_DATA].hasOwnProperty('schema') && contentObj[FORM_DATA].schema.hasOwnProperty('$ref')) {
|
||||
contentObj[FORM_DATA].schema = this.getRefObject(contentObj[FORM_DATA].schema.$ref, components, options);
|
||||
}
|
||||
// create the form parameters and add it to the request body object
|
||||
_.forOwn(bodyData, (value, key) => {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user