This commit is contained in:
heiye111
2025-09-20 21:06:53 +08:00
commit c74f28caa7
2539 changed files with 365006 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
'use strict'
const { test } = require('node:test')
const build = require('..')
test('object with custom format field', (t) => {
t.plan(1)
const schema = {
title: 'object with custom format field',
type: 'object',
properties: {
str: {
type: 'string',
format: 'test-format'
}
}
}
const stringify = build(schema)
t.assert.doesNotThrow(() => {
stringify({
str: 'string'
})
})
})