Skip to content

fix(redteam): properties add-value send property_name/property_value#210

Merged
cdot65 merged 1 commit into
mainfrom
cdot65/fix/redteam-properties-add-value-fields
May 28, 2026
Merged

fix(redteam): properties add-value send property_name/property_value#210
cdot65 merged 1 commit into
mainfrom
cdot65/fix/redteam-properties-add-value-fields

Conversation

@cdot65

@cdot65 cdot65 commented May 28, 2026

Copy link
Copy Markdown
Owner

Summary

  • airs redteam properties add-value was sending {name, value} and getting HTTP 422 from upstream
  • SDK schema (PropertyValueCreateRequestSchema) expects {property_name, property_value}
  • Fix renames the request body fields and drops the as never cast that was masking the type mismatch

Closes #197

Test plan

  • Unit test in tests/unit/airs/promptsets.spec.ts asserts request body shape
  • pnpm lint && pnpm tsc --noEmit && pnpm test && pnpm docs:check all pass
  • Manual: airs redteam properties add-value --name <prop> --value <v> returns 200 against live tenant

@cdot65 cdot65 merged commit b014070 into main May 28, 2026
5 checks passed
@cdot65 cdot65 deleted the cdot65/fix/redteam-properties-add-value-fields branch May 28, 2026 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

redteam properties add-value sends wrong field names (name/value vs property_name/property_value)

1 participant