Skip to content

Fix OpenAPI schema cache collision by including schema_path in cache key#466

Merged
geemus merged 1 commit intomasterfrom
chache-collision
Feb 13, 2026
Merged

Fix OpenAPI schema cache collision by including schema_path in cache key#466
geemus merged 1 commit intomasterfrom
chache-collision

Conversation

@ydah
Copy link
Member

@ydah ydah commented Feb 9, 2026

This PR fixes a cache key issue in schema loading that could cause incorrect cache reuse for OpenAPI 3 schemas.

  • file content hash
  • parser options hash

For OpenAPI 3, relative $ref resolution depends on schema_path, so two files with identical root content but different directories could incorrectly share the same cached schema object.

This PR fixes a cache key issue in schema loading that could cause incorrect cache reuse for OpenAPI 3 schemas.

- file content hash
- parser options hash

For OpenAPI 3, relative `$ref` resolution depends on `schema_path`, so two files with identical root content but different directories could
incorrectly share the same cached schema object.
Copy link
Member

@geemus geemus left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@geemus geemus merged commit d644a2e into master Feb 13, 2026
8 checks passed
@geemus geemus deleted the chache-collision branch February 13, 2026 01:15
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.

2 participants