Adds @xuqm/h5-sdk/private entry point with JSON-based initialization, feature gating, and error codes for private deployment scenarios. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
16 行
394 B
TypeScript
16 行
394 B
TypeScript
import type {CodeKeywordDefinition} from "../../types"
|
|
import type {KeywordCxt} from "../../compile/validate"
|
|
import {validateProperties, error} from "./properties"
|
|
|
|
const def: CodeKeywordDefinition = {
|
|
keyword: "optionalProperties",
|
|
schemaType: "object",
|
|
error,
|
|
code(cxt: KeywordCxt) {
|
|
if (cxt.parentSchema.properties) return
|
|
validateProperties(cxt)
|
|
},
|
|
}
|
|
|
|
export default def
|