Compiles and registers one DXNSchemaProvider into registry, in
order:
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.
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.
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.
If provider.dxnMaterialize exists, registers it
(Registry#putStructMaterializer). If not, decoding this
schema falls back to the default plain field object.
Compiles and registers one
DXNSchemaProviderintoregistry, in order:provider.dxnSchema()'s source intoregistry. Every named type and every%schema{}entry that document defines gets folded in, not only the onedxnSchemaName()points at.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.dxnClass()with that schema name (Registry#putStructModule) — what letsencode/encodeBinaryserialize instances of it directly and lets{form: 'reference', name}checks recognize it.provider.dxnMaterializeexists, registers it (Registry#putStructMaterializer). If not, decoding this schema falls back to the default plain field object.