Skip to content

v1.0.2

Latest
Compare
Choose a tag to compare
@ksentak ksentak released this 10 Nov 14:06
· 48 commits to main since this release
a53ff60

Added

  • New unit tests to ensure the reliability of schema dereferencing functions in fireboltOpenRpcDereferencing.mjs.

Changed

  • Refined selfReferenceSchemaCheck() to return a boolean consistently, enhancing readability and predictability of self-referencing detection logic.

  • Overhauled replaceRefs() for improved efficiency:

    • Implemented a set to track replaced $refs, thereby preventing infinite recursion during ref replacement.

    • Expanded the function to handle nested objects and arrays more effectively.

  • Modernized various parts of fireboltOpenRpcDereferencing.mjs with arrow functions for a more modern code syntax.

Fixed

  • Addressed potential issues with recursive calls and infinite loops in replaceRefs() by marking self-referenced schemas as replaced and removing redundant $ref keys.