mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 08:36:01 +00:00
updated schemas, fixed tests, skipping flow tests for now
This commit is contained in:
@@ -68,6 +68,7 @@ export class SchemaObject<Schema extends TSchema = TSchema> {
|
||||
|
||||
async set(config: s.Static<Schema>, noEmit?: boolean): Promise<s.Static<Schema>> {
|
||||
const valid = parse(this._schema, structuredClone(config) as any, {
|
||||
coerce: false,
|
||||
forceParse: true,
|
||||
skipMark: this.isForceParse(),
|
||||
});
|
||||
|
||||
@@ -67,7 +67,7 @@ export function parse<S extends s.Schema, Options extends ParseOptions = ParseOp
|
||||
});
|
||||
}
|
||||
|
||||
const result = schema.validate(value, {
|
||||
const result = _schema.validate(value, {
|
||||
shortCircuit: true,
|
||||
ignoreUnsupported: true,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user