Skip to content

Conversation

@aklkv
Copy link

@aklkv aklkv commented Dec 5, 2025

What/Why/How?

Added ajv as a direct dependency to @redocly/respect-core package.

Why: The package uses better-ajv-errors which declares ajv as a peer dependency. Without ajv as a direct dependency, users encounter peer dependency warnings and installation failures when installing @redocly/respect-core.

How: Added "ajv": "npm:@redocly/[email protected]" to the dependencies in packages/respect-core/package.json, matching the version of @redocly/ajv already in use.

Reference

Fixes #2444

Testing

  • Verified ajv is now listed in dependencies
  • Version ^8.17.1 satisfies better-ajv-errors peer dependency requirement (4.11.8 - 8)
  • No breaking changes - ajv is already used transitively via @redocly/ajv

Screenshots (optional)

N/A

Check yourself

  • Code changed? - Tested with Redoc/Realm/Reunite (internal)
  • All new/updated code is covered by tests (no code changes, only dependency addition)
  • New package installed? - Tested in different environments (browser/node)
  • Documentation update considered (no documentation changes needed)

Security

  • The security impact of the change has been considered
  • Code follows company security practices and guidelines

@aklkv aklkv requested a review from a team as a code owner December 5, 2025 09:50
@changeset-bot
Copy link

changeset-bot bot commented Dec 5, 2025

⚠️ No Changeset found

Latest commit: 834668e

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

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.

Missing peer dependency ajv in better-ajv-errors causes installation failures

2 participants