redocly-cli icon indicating copy to clipboard operation
redocly-cli copied to clipboard

feat: add functionality to change default unevaluated properties on demand

Open AlbinaBlazhko17 opened this issue 1 month ago • 1 comments

What/Why/How?

  • Added using new setter method to set on demand default unevaluated properties.
  • Refactored no-invalid-media-type-examples, no-invalid-parameter-examples, no-invalid-schema-examples rules.
  • Set to validateExamples function default property of defaultUnevaluatedProperties to true due to OpenApi spec. OpenApi spec by default sets additionalProperties for objects to true.

Reference

Resolves #2410

Testing

Ran tests and added new, which cover specific case.

Screenshots (optional)

Check yourself

  • [ ] Code changed? - Tested with Redoc/Realm/Reunite (internal)
  • [ ] All new/updated code is covered by tests
  • [x] New package installed? - Tested in different environments (browser/node)
  • [ ] Documentation update considered

Security

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

AlbinaBlazhko17 avatar Nov 28 '25 15:11 AlbinaBlazhko17

⚠️ No Changeset found

Latest commit: 15c24334c2e0ce18c9660e96e02f08195c7a5a92

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

changeset-bot[bot] avatar Nov 28 '25 15:11 changeset-bot[bot]