You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[task] Update schema to allow polymorphic types for category and version fields #4313
Update JSON schema definitions to match runtime behavior for category and version fields that accept multiple types.
Context
Related to discussion #4307. The runtime accepts both string and numeric types for these fields, but the schema only documents string types, creating validation gaps.
Approach
Update category field to accept both string and integer: "type": ["string", "integer"]
Update version field to accept both string and number: "type": ["string", "number"]
Add examples showing numeric usage
Document conversion behavior in descriptions
Affected Fields
category (in safe-outputs.create-discussion)
Schema location: Look for create-discussion safe output configuration Current: "type": "string" Should be: "type": ["string", "integer"] Runtime code (pkg/workflow/create_discussion.go:26-32):
switchv:=category.(type) {
casestring:
discussionsConfig.Category=vcaseint: // NOT in current schema!discussionsConfig.Category=strconv.Itoa(v)
}
Activity