Skip to content

Commit a75cb27

Browse files
authored
Merge branch 'develop' into feature/remove-travis
2 parents 9076882 + 851645d commit a75cb27

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

OPTIONS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ requestParametersResolution|enum|Example, Schema|Schema|Select whether to genera
88
exampleParametersResolution|enum|Example, Schema|Example|Select whether to generate the response parameters based on the [schema](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#schemaObject) or the [example](https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md#exampleObject) in the schema.|CONVERSION
99
folderStrategy|enum|Paths, Tags|Paths|Select whether to create folders according to the spec’s paths or tags.|CONVERSION
1010
schemaFaker|boolean|-|true|Whether or not schemas should be faked.|CONVERSION
11-
stackLimit|integer|-|10|Number of nesting limit till which schema resolution will happen. Increasing this limit may result in more time to convert collection depending on complexity of specification. (To make sure this option works correctly "optimizeConversion" option needs to be disabled)|CONVERSION
11+
stackLimit|integer|-|8|Number of nesting limit till which schema resolution will happen. Increasing this limit may result in more time to convert collection depending on complexity of specification. (To make sure this option works correctly "optimizeConversion" option needs to be disabled)|CONVERSION
1212
includeAuthInfoInExample|boolean|-|true|Select whether to include authentication parameters in the example request|CONVERSION
1313
shortValidationErrors|boolean|-|false|Whether detailed error messages are required for request <> schema validation operations.|VALIDATION
1414
validationPropertiesToIgnore|array|-|[]|Specific properties (parts of a request/response pair) to ignore during validation. Must be sent as an array of strings. Valid inputs in the array: PATHVARIABLE, QUERYPARAM, HEADER, BODY, RESPONSE_HEADER, RESPONSE_BODY|VALIDATION

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
![postman icon](https://raw.githubusercontent.com/postmanlabs/postmanlabs.github.io/develop/global-artefacts/postman-logo%2Btext-320x132.png)
2+
<img src="https://voyager.postman.com/logo/postman-logo-orange.svg" width="320" alt="The Postman Logo">
33

44
*Supercharge your API workflow.*
55
*Modern software is built on APIs. Postman helps you develop APIs faster.*

lib/deref.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module.exports = {
149149
*/
150150

151151
resolveRefs: function (schema, parameterSourceOption, components, schemaResolutionCache,
152-
resolveFor = 'CONVERSION', resolveTo = 'schema', stack = 0, seenRef = {}, stackLimit = 10, isAllOf = false) {
152+
resolveFor = 'CONVERSION', resolveTo = 'schema', stack = 0, seenRef = {}, stackLimit = 8, isAllOf = false) {
153153
var resolvedSchema, prop, splitRef,
154154
ERR_TOO_MANY_LEVELS = '<Error: Too many levels of nesting to fake this schema>';
155155
let concreteUtils = components && components.hasOwnProperty('concreteUtils') ?

lib/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ module.exports = {
155155
name: 'Schema resolution nesting limit',
156156
id: 'stackLimit',
157157
type: 'integer',
158-
default: 10,
158+
default: 8,
159159
description: 'Number of nesting limit till which schema resolution will happen. Increasing this limit may' +
160160
' result in more time to convert collection depending on complexity of specification. (To make sure this' +
161161
' option works correctly "optimizeConversion" option needs to be disabled)',

lib/schemaUtils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ module.exports = {
273273

274274
var computedOptions = _.clone(options);
275275

276-
computedOptions.stackLimit = 10;
276+
computedOptions.stackLimit = 8;
277277
// This is the score that is given to each spec on the basis of the
278278
// number of references present in spec and the number of requests that will be generated.
279279
// This ranges from 0-10.

test/system/structure.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ const optionIds = [
9696
stackLimit: {
9797
name: 'Schema resolution nesting limit',
9898
type: 'integer',
99-
default: 10,
99+
default: 8,
100100
description: 'Number of nesting limit till which schema resolution will happen. Increasing this limit may' +
101101
' result in more time to convert collection depending on complexity of specification. (To make sure this' +
102102
' option works correctly "optimizeConversion" option needs to be disabled)'

test/unit/validator.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ describe('VALIDATE FUNCTION TESTS ', function () {
13491349
'/invalid_response_body_all_of_properties_collection.json'), 'utf-8'),
13501350
historyRequest = [],
13511351
schemaPack = new Converter.SchemaPack({ type: 'string', data: allOfExample },
1352-
{ suggestAvailableFixes: true, showMissingInSchemaErrors: true });
1352+
{ suggestAvailableFixes: true, showMissingInSchemaErrors: true, optimizeConversion: false, stackLimit: 10 });
13531353

13541354
getAllTransactions(JSON.parse(allOfCollection), historyRequest);
13551355

0 commit comments

Comments
 (0)