node-dextrin - v0.1.0
    Preparing search index...

    Function registerProvider

    • Compiles and registers one DXNSchemaProvider into registry, in order:

      1. Decodes and compiles provider.dxnSchema()'s source into registry. Every named type and every %schema{} entry that document defines gets folded in, not only the one dxnSchemaName() points at.
      2. Looks up dxnSchemaName() in the now-compiled registry — if it isn't there (the provider declared a name its own document doesn't define), throws a specific error naming both, rather than silently registering nothing.
      3. Associates dxnClass() with that schema name (Registry#putStructModule) — what lets encode/encodeBinary serialize instances of it directly and lets {form: 'reference', name} checks recognize it.
      4. If provider.dxnMaterialize exists, registers it (Registry#putStructMaterializer). If not, decoding this schema falls back to the default plain field object.

      Parameters

      Returns export=