Skip to content
English

配置、清单与策略 ​

Support · 推荐实现与策略 · 返回本层目录

符号类别用途
defineRegistrationCatalogfunctionCompile an ordered installation plan. Predicates observe the effects of preceding installations at request time; a predicate that throws rejects the install instead of being treated as false. Callbacks are bound to their declaring definition so implementations may rely on this.
defineSchemafunctionRe-snapshot an existing adapter without changing its behavior. Used to detach a caller-owned adapter from later mutation before it is exposed or reused.
fromJsonSchemafunctionBuild an adapter from a caller-owned typed JSON Schema compiler. The schema is cloned and frozen before it reaches the compiler, so later mutation of the input cannot change validation. Compilation and validation must both be synchronous.
fromParserSchemafunctionWrap a library schema that already parses values (for example Zod or Valibot style). parse is delegated unchanged, so the library keeps ownership of coercion and error reporting; only the JSON Schema projection is produced here.
JsonSchemaOptionsinterfaceOptions for building an adapter from a JSON Schema compiler.
JsonSchemaValidatorinterfaceApp-owned JSON Schema compilers provide synchronous validation.
RegistrationDefinitioninterfaceOne install step.

接口参考、使用示例与开发指南。