Skip to content

fix (json-schema): support $defs keyword#58886

Merged
typescript-bot merged 2 commits intoDefinitelyTyped:masterfrom
robatosan:add-defs-keyword
Mar 16, 2022
Merged

fix (json-schema): support $defs keyword#58886
typescript-bot merged 2 commits intoDefinitelyTyped:masterfrom
robatosan:add-defs-keyword

Conversation

@robatosan
Copy link
Copy Markdown
Contributor

@robatosan robatosan commented Feb 21, 2022

  • The definitions keyword has been changed to $defs
  • Old style "definitions" still supported though

https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.appendix.A

Please fill in this template.

Select one of these and delete the others:

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: JSON Schema Draft 2020-12
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the header.

- The definitions keyword has been changed to $defs
- Old style "definitions" still supported though

https://json-schema.org/draft/2020-12/json-schema-validation.html#rfc.appendix.A
@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Feb 21, 2022

@robatosan Thank you for submitting this PR! I see this is your first time submitting to DefinitelyTyped 👋 — I'm the local bot who will help you through the process of getting things through.

This is a live comment which I will keep updated.

2 packages in this PR

Code Reviews

This PR can be merged once it's reviewed.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Type definition owners or DT maintainers needs to approve changes which affect more than one package

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 58886,
  "author": "robatosan",
  "headCommitOid": "fea40348e94df431241a437b6fc393904d8e06f7",
  "mergeBaseOid": "369ecc516615fb782639bd4d707be43a01c90df4",
  "lastPushDate": "2022-02-21T09:50:06.000Z",
  "lastActivityDate": "2022-03-16T11:58:59.000Z",
  "maintainerBlessed": "Waiting for Code Reviews",
  "mergeOfferDate": "2022-03-11T22:46:47.000Z",
  "mergeRequestDate": "2022-03-16T11:58:59.000Z",
  "mergeRequestUser": "robatosan",
  "hasMergeConflict": false,
  "isFirstContribution": true,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "conventional-changelog-config-spec",
      "kind": "edit",
      "files": [
        {
          "path": "types/conventional-changelog-config-spec/conventional-changelog-config-spec-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "JasonHK"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Well-liked by everyone"
    },
    {
      "name": "json-schema",
      "kind": "edit",
      "files": [
        {
          "path": "types/json-schema/index.d.ts",
          "kind": "definition"
        },
        {
          "path": "types/json-schema/json-schema-tests.ts",
          "kind": "test"
        }
      ],
      "owners": [
        "bcherny",
        "cyrilletuzi",
        "lucianbuzzo",
        "rolandjitsu",
        "JasonHK"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "RyanCavanaugh",
      "date": "2022-03-11T22:46:08.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 1046634789,
  "ciResult": "pass"
}

@typescript-bot
Copy link
Copy Markdown
Contributor

typescript-bot commented Feb 21, 2022

🔔 @JasonHK @bcherny @cyrilletuzi @LucianBuzzo @rolandjitsu — please review this PR in the next few days. Be sure to explicitly select Approve or Request Changes in the GitHub UI so I know what's going on.

@typescript-bot typescript-bot added the The CI failed When GH Actions fails label Feb 21, 2022
@typescript-bot
Copy link
Copy Markdown
Contributor

@robatosan The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot added Edits multiple packages The CI failed When GH Actions fails and removed The CI failed When GH Actions fails labels Feb 21, 2022
@typescript-bot
Copy link
Copy Markdown
Contributor

@robatosan The CI build failed! Please review the logs for more information.

Once you've pushed the fixes, the build will automatically re-run. Thanks!

Note: builds which are failing do not end up on the list of PRs for the DT maintainers to review.

@typescript-bot typescript-bot removed the The CI failed When GH Actions fails label Feb 21, 2022
@typescript-bot
Copy link
Copy Markdown
Contributor

Re-ping @JasonHK, @bcherny, @cyrilletuzi, @LucianBuzzo, @rolandjitsu:

This PR has been out for over a week, yet I haven't seen any reviews.

Could someone please give it some attention? Thanks!

@typescript-bot typescript-bot added the Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. label Mar 4, 2022
@typescript-bot
Copy link
Copy Markdown
Contributor

It has been more than two weeks and this PR still has no reviews.

I'll bump it to the DT maintainer queue. Thank you for your patience, @robatosan.

(Ping @JasonHK, @bcherny, @cyrilletuzi, @LucianBuzzo, @rolandjitsu.)

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner and removed Unreviewed No one showed up to review this PR, so it'll be reviewed by a DT maintainer. labels Mar 11, 2022
@robatosan
Copy link
Copy Markdown
Contributor Author

Ready to merge

@typescript-bot typescript-bot merged commit 41a7ec7 into DefinitelyTyped:master Mar 16, 2022
@Woodz
Copy link
Copy Markdown

Woodz commented Mar 24, 2022

This MR adds $ref to the wrong type - JSONSchema7 should be frozen and new versions added, e.g. JSONSchema201909 and ``JSONSchema202012(according to the versions listed underMigrating from older drafts` on https://json-schema.org/specification.html)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Edits multiple packages Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants