Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): update unevaluatedItems type defintion #1295

Merged
merged 3 commits into from
Oct 13, 2023

Conversation

jeremyfiel
Copy link
Contributor

Per JSON Schema 2019-09+ spec. this annotation keyword can be any valid JSON Schema schema. e.g. boolean or schema https://json-schema.org/draft/2019-09/json-schema-core#unevaluatedItems

partially fixes #1233

What/Why/How?

The type definition for unevaulatedItems was incorrect per the JSON Schema 2019-09 specification

Reference

https://json-schema.org/draft/2019-09/json-schema-core#unevaluatedItems

Testing

Screenshots (optional)

Check yourself

  • [ x] Code is linted
  • Tested with redoc/reference-docs/workflows (internal)
  • All new/updated code is covered with tests

Security

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

@jeremyfiel jeremyfiel requested a review from a team as a code owner October 12, 2023 15:08
@changeset-bot
Copy link

changeset-bot bot commented Oct 12, 2023

🦋 Changeset detected

Latest commit: 4b93b0a

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

This PR includes changesets to release 2 packages
Name Type
@redocly/cli Patch
@redocly/openapi-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

@tatomyr tatomyr force-pushed the fix/unevaluatedItems-type-def branch from afc33d1 to cc000a4 Compare October 13, 2023 11:41
@tatomyr
Copy link
Contributor

tatomyr commented Oct 13, 2023

Hi @jeremyfiel! Thanks for your contribution. Could you add the patch changeset? Here's the guide: https://github.com/Redocly/redocly-cli/blob/main/.github/CONTRIBUTING.md#pull-request-guidelines

@jeremyfiel jeremyfiel force-pushed the fix/unevaluatedItems-type-def branch from cc000a4 to c961d6e Compare October 13, 2023 15:31
@tatomyr tatomyr force-pushed the fix/unevaluatedItems-type-def branch from 7bfee4b to 4b93b0a Compare October 13, 2023 15:39
@tatomyr tatomyr merged commit be16c58 into Redocly:main Oct 13, 2023
25 checks passed
@jeremyfiel jeremyfiel deleted the fix/unevaluatedItems-type-def branch October 24, 2023 16:14
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.

unevaluatedItems boolean schema error, Can't resolve $ref with component schemas
2 participants