What changed
Producer-side tools call this additive. It breaks exhaustive switches, strict parsers and generated client enums.
Affects input_restrictions[] on CustomFieldCompact reachable from 66 operations.
New values: record, team.
can now return "record", "team"
Who is affected
Code that reads Asana's CustomFieldCompact objects, used by 66 Asana operations.
Before and after
| Where | Before | After |
|---|---|---|
| CustomFieldCompact.input_restrictions[] | "goal", "portfolio", "project", "task" | "goal", "portfolio", "project", "record", "task", "team" |
| CustomFieldResponse.input_restrictions[] | "goal", "portfolio", "project", "task" | "goal", "portfolio", "project", "record", "task", "team" |
| CustomFieldBase.input_restrictions[] | "goal", "portfolio", "project", "task" | "goal", "portfolio", "project", "record", "task", "team" |
| CustomFieldSettingResponse.custom_field.input_restrictions[] | "goal", "portfolio", "project", "task" | "goal", "portfolio", "project", "record", "task", "team" |
| CustomFieldTableSettingResponse.custom_field.input_restrictions[] | "goal", "portfolio", "project", "task" | "goal", "portfolio", "project", "record", "task", "team" |
Code that breaks
switch (response.input_restrictions[0]) {
// existing branches …
// no branch for "record"
// no branch for "team"
default:
throw new Error("unexpected input_restrictions");
}Based on Asana’s published API specification. How severity is decided.