Documentation
¶
Index ¶
- type ValidationResult
- type Validator
- func (v *Validator) GetAvailableSchemas(ctx context.Context) []string
- func (v *Validator) GetClientYAMLSchema(ctx context.Context) (map[string]interface{}, error)
- func (v *Validator) GetServerYAMLSchema(ctx context.Context) (map[string]interface{}, error)
- func (v *Validator) GetStackConfigComposeSchema(ctx context.Context) (map[string]interface{}, error)
- func (v *Validator) ValidateClientYAML(ctx context.Context, yamlContent string) ValidationResult
- func (v *Validator) ValidateServerYAML(ctx context.Context, yamlContent string) ValidationResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidationResult ¶
type ValidationResult struct {
Valid bool `json:"valid"`
Errors []string `json:"errors,omitempty"`
Warnings []string `json:"warnings,omitempty"`
}
ValidationResult contains the result of schema validation
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator provides validation of generated YAML configurations against JSON schemas
func NewValidator ¶
func NewValidator() *Validator
NewValidator creates a new validator with embedded schemas
func (*Validator) GetAvailableSchemas ¶
GetAvailableSchemas returns a list of available schemas for validation
func (*Validator) GetClientYAMLSchema ¶
GetClientYAMLSchema returns the client.yaml schema for prompt enrichment
func (*Validator) GetServerYAMLSchema ¶
GetServerYAMLSchema returns the server.yaml schema for prompt enrichment
func (*Validator) GetStackConfigComposeSchema ¶
func (v *Validator) GetStackConfigComposeSchema(ctx context.Context) (map[string]interface{}, error)
GetStackConfigComposeSchema returns the stack config schema for prompt enrichment
func (*Validator) ValidateClientYAML ¶
func (v *Validator) ValidateClientYAML(ctx context.Context, yamlContent string) ValidationResult
ValidateClientYAML validates client.yaml content against ClientDescriptor schema
func (*Validator) ValidateServerYAML ¶
func (v *Validator) ValidateServerYAML(ctx context.Context, yamlContent string) ValidationResult
ValidateServerYAML validates server.yaml content against ServerDescriptor schema