Skip to content

Conversation

@pvdbosch
Copy link

Description

Updates @openapi-contrib/openapi-schema-to-json-schema to 5.1.0

Currently used version modifies the input data when transforming from OpenAPI to JSON draft4 schema , even though cloneSchema: true is used.
This leads to the bug described in #275 when the same schema is transformed multiple times during parsing.

This PR updates the dependency fixing this bug, and adds a test case to validate the fix.
Some type casting is necessary, because the updated dependency uses stricter typing.

This is an alternative fix to #276, which worked around the bug by cloning the input.

Related issue(s)

Resolves #275

fmvilas
fmvilas previously approved these changes Oct 1, 2025
Copy link
Member

@fmvilas fmvilas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 1, 2025

@pvdbosch
Copy link
Author

pvdbosch commented Oct 1, 2025

I added a commit to fix the build problem : the URL of my company's npm mirror was mistakenly used in package-lock.json

@pvdbosch
Copy link
Author

@fmvilas , could you review this change again? The build problem (in package-lock.json) should be fixed now.

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.

[BUG] Parsing fails for schema that's referenced multiple times

2 participants