Closed mitchell-merry closed 3 weeks ago
This schema:
const schema = z.record( z.string().regex(/.+/).brand('MyBrandedThingo'), z.number() );
currently generates as:
{ "type": "object", "additionalProperties": { "type": "number" }, "$schema": "http://json-schema.org/draft-07/schema#" }
when I would expect:
{ "type": "object", "additionalProperties": { "type": "number" }, "propertyNames": { "pattern": ".+" }, "$schema": "http://json-schema.org/draft-07/schema#" }
(I have a branch fixing this)
This schema:
currently generates as:
when I would expect:
(I have a branch fixing this)