Validate a schema against the NAP-CONFIG v1 Core Subset.
Napplet-supplied schema.
{ ok: true } or the rejection code and message.
{ ok: true }
validateMockConfigSchema({ type: 'object', properties: { u: { type: 'string', pattern: '^a' } } });// → { ok: false, code: 'pattern-not-allowed', error: '...' } Copy
validateMockConfigSchema({ type: 'object', properties: { u: { type: 'string', pattern: '^a' } } });// → { ok: false, code: 'pattern-not-allowed', error: '...' }
Validate a schema against the NAP-CONFIG v1 Core Subset.