-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Description
Overview
Schema validation inconsistency between YAML definition and Go implementation leads to runtime failures.
Issue Details
Missing requestModel in System Parameters Schema
Files:
- Schema:
policy-definition.yaml(lines 34-36) - Implementation:
roundrobin.go(lines 147-195)
Description:
The policy definition YAML declares systemParameters with empty properties, but the Go implementation requires a requestModel parameter with location and identifier fields, validated as required.
Schema Mismatch:
# Current (incorrect)
systemParameters:
type: object
properties: {}
# Required (missing)
systemParameters:
type: object
properties:
requestModel:
type: object
properties:
location: {type: string}
identifier: {type: string}
required: [location, identifier]
required: [requestModel]Proposed Fix:
Update the policy-definition.yaml to include the requestModel structure in systemParameters with proper validation rules.
Impact:
Configuration validation fails to catch missing required parameters, leading to runtime failures.
Reference
Metadata
Metadata
Assignees
Labels
No labels