mirror of
https://github.com/postmanlabs/openapi-to-postman.git
synced 2022-11-29 22:05:00 +03:00
Use bracket resolution for application/json
This commit is contained in:
@@ -2451,7 +2451,7 @@ module.exports = {
|
||||
mismatches.push({
|
||||
property: mismatchProperty,
|
||||
transactionJsonPath: transactionPathPrefix,
|
||||
schemaJsonPath: schemaPathPrefix + '.requestBody.content.application.json.schema',
|
||||
schemaJsonPath: schemaPathPrefix + '.requestBody.content[application/json].schema',
|
||||
reasonCode: 'INVALID_BODY',
|
||||
reason: 'The request body didn\'t match the specified schema'
|
||||
});
|
||||
@@ -2462,7 +2462,7 @@ module.exports = {
|
||||
// mismatches.push({
|
||||
// property: 'BODY',
|
||||
// transactionJsonPath: transactionPathPrefix + error.dataPath,
|
||||
// schemaJsonPath: schemaPathPrefix + '.requestBody.content.application.json.schema.' + error.schemaPath,
|
||||
// schemaJsonPath: schemaPathPrefix + '.requestBody.content[application/json].schema.' + error.schemaPath,
|
||||
// reasonCode: error.keyword.toUpperCase(),
|
||||
// reason: error.message
|
||||
// });
|
||||
|
||||
Reference in New Issue
Block a user