You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
absolutely- go for it! I would take a look at NodeMeta in ark/schema/shared/declare.ts, which you could add this jsonSchema property to. I guess there are some footguns here, e.g. configure normally applies the config to all shallow nodes, but that would rarely be desirable for JSON Schema as it would lead to misleading results for nested nodes (although those would probably never be seen in the vast majority of cases).
Also whether jsonSchema should accept some kind of function that would map the inner node to its jsonSchema value so it could be more general? I suppose we could support this in the future and just do the basic version now where the JSON schema provided has to be an actual value.
Activity
yamcodes commentedon Dec 22, 2025
I can take this if you want to assign me. Correct me if I'm wrong but this looks like a good first "code" type issue, right?
ssalbdivad commentedon Dec 22, 2025
absolutely- go for it! I would take a look at
NodeMetainark/schema/shared/declare.ts, which you could add thisjsonSchemaproperty to. I guess there are some footguns here, e.g. configure normally applies the config to all shallow nodes, but that would rarely be desirable for JSON Schema as it would lead to misleading results for nested nodes (although those would probably never be seen in the vast majority of cases).Also whether
jsonSchemashould accept some kind of function that would map the inner node to its jsonSchema value so it could be more general? I suppose we could support this in the future and just do the basic version now where the JSON schema provided has to be an actual value.feat: write a node's JSON Schema from its jsonSchema meta (#1571, #1475)
docs(type): cite the issues the release fixes and add the entries it …
test(json-schema): pin jsonSchema meta overriding a regex's pattern (#…
ssalbdivad commentedon Nov 18, 2026
Fixed in 3.0.0-beta.0 (#1728). Try it with
npm i arktype@next.