Skip to content

fix: fixed the wrong validation of constructor property#2126

Merged
RomanHotsiy merged 5 commits intomainfrom
fix-constructor-property-validation
Jun 4, 2025
Merged

fix: fixed the wrong validation of constructor property#2126
RomanHotsiy merged 5 commits intomainfrom
fix-constructor-property-validation

Conversation

@RomanHotsiy
Copy link
Member

@RomanHotsiy RomanHotsiy commented Jun 4, 2025

What/Why/How?

Because we used regular objects we mistakenly were getting constructor property validated incorrectly.

Reference

Fixes #2104

Testing

Added e2e.

Check yourself

  • Code changed? - Tested with redoc (internal)
  • All new/updated code is covered with tests
  • New package installed? - Tested in different environments (browser/node)

Security

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

@RomanHotsiy RomanHotsiy requested review from a team as code owners June 4, 2025 05:58
@changeset-bot
Copy link

changeset-bot bot commented Jun 4, 2025

🦋 Changeset detected

Latest commit: 7ea4382

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@redocly/openapi-core Patch
@redocly/cli Patch
@redocly/respect-core Patch

Not sure what this means? Click here to learn what changesets are.

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

@github-actions
Copy link
Contributor

github-actions bot commented Jun 4, 2025

Command Mean [ms] Min [ms] Max [ms] Relative
redocly lint packages/core/src/benchmark/benches/rebilly.yaml 927.6 ± 4.6 917.0 932.3 1.00
redocly-next lint packages/core/src/benchmark/benches/rebilly.yaml 1001.9 ± 11.5 976.9 1021.8 1.08 ± 0.01

@RomanHotsiy RomanHotsiy changed the title Fix constructor property validation fix: fixed the wrong validation of constructor property Jun 4, 2025
@RomanHotsiy RomanHotsiy force-pushed the fix-constructor-property-validation branch from cc1da8d to c046628 Compare June 4, 2025 06:26
@RomanHotsiy RomanHotsiy merged commit d0ccb50 into main Jun 4, 2025
36 checks passed
@RomanHotsiy RomanHotsiy deleted the fix-constructor-property-validation branch June 4, 2025 06:48
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.

Redocly lint fails with an error 'Expected type object,null but got object.'

3 participants