Skip to content

Conversation

@dependabot
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 21, 2025

Bumps arktype from 2.1.19 to 2.1.20.

Changelog

Sourced from arktype's changelog.

2.1.20

toJsonSchema config

Some ArkType features don't have JSON Schema equivalents. By default, toJsonSchema() will throw in these cases.

This behavior can be configured granularly to match your needs.

const T = type({
	"[symbol]": "string",
	birthday: "Date"
})
const schema = T.toJsonSchema({
fallback: {
// ✅ the "default" key is a fallback for any non-explicitly handled code
// ✅ ctx includes "base" (represents the schema being generated) and other code-specific props
// ✅ returning ctx.base will effectively ignore the incompatible constraint
default: ctx => ctx.base,
// handle specific incompatibilities granularly
date: ctx => ({
...ctx.base,
type: "string",
format: "date-time",
description: ctx.after ? after ${ctx.after} : "anytime"
})
}
})
const result = {
$schema: "https://json-schema.org/draft/2020-12/schema",
type: "object",
properties: {
// Date instance is now a date-time string as specified by the date handler
birthday: { type: "string", format: "date-time", description: "anytime" }
},
required: ["birthday"]
// symbolic index signature ignored as specified by the default handler
}

a default handler can also be specified at the root of a fallback config:

const T = type({
	"[symbol]": "string",
	birthday: "Date"
})
</tr></table>

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [arktype](https://github.com/arktypeio/arktype/tree/HEAD/ark/type) from 2.1.19 to 2.1.20.
- [Release notes](https://github.com/arktypeio/arktype/releases)
- [Changelog](https://github.com/arktypeio/arktype/blob/main/ark/type/CHANGELOG.md)
- [Commits](https://github.com/arktypeio/arktype/commits/[email protected]/ark/type)

---
updated-dependencies:
- dependency-name: arktype
  dependency-version: 2.1.20
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 21, 2025

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 28, 2025

Dependabot can't authenticate to a private package registry. Because of this, Dependabot cannot update this pull request.

3 similar comments
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 5, 2025

Dependabot can't authenticate to a private package registry. Because of this, Dependabot cannot update this pull request.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 12, 2025

Dependabot can't authenticate to a private package registry. Because of this, Dependabot cannot update this pull request.

@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github May 19, 2025

Dependabot can't authenticate to a private package registry. Because of this, Dependabot cannot update this pull request.

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.

1 participant