MCPcopy Create free account
hub / github.com/astercloud/aster / NewSchemaValidator

Function NewSchemaValidator

pkg/structured/schema.go:300–302  ·  view source on GitHub ↗

NewSchemaValidator 创建 Schema 验证器

(schema *JSONSchema)

Source from the content-addressed store, hash-verified

298
299// NewSchemaValidator 创建 Schema 验证器
300func NewSchemaValidator(schema *JSONSchema) *SchemaValidator {
301 return &SchemaValidator{schema: schema}
302}
303
304// Validate 验证 JSON 数据是否符合 Schema
305// 目前是简化实现,仅做基础类型检查

Callers 1

NewTypedParserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected