Skip to content

[API Policies] Model Round Robin Policy Issue #694

@DakshithaS

Description

@DakshithaS

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

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions