Skip to content

Conversation

LuisTejedaS
Copy link
Collaborator

@LuisTejedaS LuisTejedaS commented Sep 13, 2022

Homologation of the commits done in Open api to postman:

f006539 Replacing all console.log with console.warn to not pollute sentry
485b48b changed json-schema-faker behaviour to not throw an error for circular refs
c04835e resolving circular refs by shallow cloning schema in case of array in deref.js
1bd4c2b using example values instead of faking schema
2c42272 Added support for suggesting available fixes
fb079ae Use faked value as example if schema example is invalid
8b2e366 Added source for new supported formats from latest json schema faker
509ca05 Update size limit for highest complexity, jsf limit update in unique function
5ea2c08 Fixed issue where for type array examples with more than 2 elements were not used in faking
db0a794 Use _.clone instead _.cloneDeep for cloning schema during example validation
7fa4832 Fixed an issue in schema faker where schema with property named deafult was faked incorrectly
ebbb3a5 fixed type in a comment
f27caec Fixed issue where example values with pm variable syntax were not picked up in conversion
da4fae4 validating transactions from openapi 3.1 spec, upgrading ajv library, adding tests to new scenarios
72e86f8 Updated objectType definition in assets/jsf to latest version of jsf
6633214 Separate validation layers
140bfcd Fixed json-schema-faker to not generate extra props
3368be1 Merge branch 'develop' into feature/sync-develop-and-split-develop
d9b4de9 (origin/fix10672/patternKeyInSchema) Fix #10672, Adding support to schemas with pattern key as schema property
04b44f2 Fix json-schema-faker#518 integer query params with enum values get default value of NaN

Other changes
Added the option to pick the first element from the examples array
Added a script to replace console.error to console.warn in bundle file.

Notes
In the interest of modifying the less possible this codebase, we are injecting the validation function and adding the options for validation via the Json-Schema-Faker OptionsAPI

pateketrueke and others added 30 commits July 7, 2022 11:15
Homologate from 485b48b to 509ca05
Revert "Homologate from 485b48b to 509ca05"
Add test for handleExclusiveMaximum and handleExclusiveMinimum
- 5ea2c08 Fixed issue where for type array examples with more than 2 elements were not used in faking
- db0a794 Use _.clone instead _.cloneDeep for cloning schema during example validation
- 7fa4832 Fixed an issue in schema faker where schema with property named deafult was faked incorrectly
- ebbb3a5 fixed type in a comment
- f27caec Fixed issue where example values with pm variable syntax were not picked up in conversion
d9b4de9  Adding support to schemas with pattern key as schema property
- Should not use actual property named "default" as faked value
Fix error calculating exclusive min and max with multiple of
Fix/fix handle exclusive min and max  with multiple of
fix failing test
reverting change integration tests
LuisTejedaS and others added 9 commits September 9, 2022 17:37
Add changes from reverted commit
change function declaration
…olvedVariables use

- Adding validateSchema to traverseCallbacks in objectType, arrayType and unique
- Avoiding typecast when ignoreUnresolvedVariables options is true
- Adding esmify and browser-resolve as development dependencies in package.json
Injecting validateSchema to traverseCallbacks and Fixiing ignoreUnres…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants