Skip to content

pattern in configure is not typed #1469

Description

@floratmin

Report a bug

When using pattern in the .configure Object it gets added to the Json Schema definition, but it is not typed.

The same is also true for my previous issue with multipleOf, which needs to be added in cases which Arktype does not support out of the box (like multipleOf: 0.1, but needs to be documented in the json schema.

🔎 Search Terms

pattern

🧩 Context

  • ArkType version:
  • TypeScript version (5.1+):
  • Other context you think may be relevant (JS flavor, OS, etc.):

🧑‍💻 Repro

Playground Link:

import { type } from "arktype"

const ThingSchema = type({
	name: type("string").configure({pattern: '^$'}),
	"versions?": "(number | string)[]"
}).toJsonSchema();

Activity

  1. added
    bug
    on Jun 13, 2025
  2. ssalbdivad commented on Nov 18, 2026

    @ssalbdivad
    Member

    Fixed in 3.0.0-beta.0 (#1728). Try it with npm i arktype@next.

  3. moved this from To do to Done (merged or closed) in arktypeioon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

  • Status
    Done (merged or closed)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions