Documentation
    Preparing search index...

    Function validateMockConfigSchema

    • Validate a schema against the NAP-CONFIG v1 Core Subset.

      Parameters

      • schema: unknown

        Napplet-supplied schema.

      Returns MockConfigValidation

      { ok: true } or the rejection code and message.

      validateMockConfigSchema({ type: 'object', properties: { u: { type: 'string', pattern: '^a' } } });
      // → { ok: false, code: 'pattern-not-allowed', error: '...' }