import { type RootNode } from '../../src/types.js' export const schema: RootNode = { type: 'root', schema: { type: 'object', fieldName: '*', propertyName: '*', allowNull: false, isOptional: false, allowUnknownProperties: false, bail: true, validations: [], groups: [ { type: 'group', conditions: [ { conditionalFnRefId: 'ref://1', schema: { type: 'sub_object', groups: [], properties: [ { type: 'literal', fieldName: 'email', propertyName: 'email', allowNull: false, isOptional: false, bail: true, validations: [], }, ], }, }, { conditionalFnRefId: 'ref://2', schema: { type: 'sub_object', groups: [], properties: [ { type: 'literal', fieldName: 'username', propertyName: 'username', allowNull: false, isOptional: false, bail: true, validations: [], }, ], }, }, ], }, ], properties: [ { type: 'literal', fieldName: 'password', propertyName: 'password', allowNull: false, isOptional: false, bail: true, validations: [], }, ], }, } export const refs = { 'ref://1': () => true, 'ref://2': () => false, }