Repository navigation
CP-9078: Correct the Story custom field and Outcome Indicator schemas - #210
Merged
Merged
Conversation
Stories return id, name, type and value for each custom field; the restricted flag from CP-9145 applies only to Contacts' fields, so Story gets its own StoryCustomFieldValue schema. GET /outcome_indicators also returns framework_indicator_id, added by CP-9081. Both found by the Rails repo's contract specs when its copy of this spec was refreshed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F1a5xrPqUbvvVon46Peko4
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
GET /beneficiaries leaves out weekly_availability and GET /projects leaves out the seven Project detail fields, so give the lists their own item shapes (ProjectListItem, Beneficiary) and the single-record responses the fuller ones (Project, BeneficiaryDetail). Make ContactWeeklyAvailability itself nullable: nullable beside allOf doesn't let null through. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F1a5xrPqUbvvVon46Peko4
POST and PATCH /event_categories return errors as an array of messages, which UnprocessableEntityList describes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01F1a5xrPqUbvvVon46Peko4
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & Why
Part of CP-9078. After #200, I refreshed the Rails repo's copy of this spec and ran its API contract specs against the real responses. Two schemas don't match what the API returns:
GET /stories.Story.custom_fieldsusedCustomFieldValue, which gained arestrictedflag for Contacts' Field Visibility in CP-9145. Stories don't do that masking; they return onlyid,name,typeandvalue(Api::V2::StoryPayload#custom_fields). Story now uses its ownStoryCustomFieldValueschema withoutrestricted.CustomFieldValueis unchanged for Contacts.GET /outcome_indicators. It returnsframework_indicator_id, a column CP-9081 added on 7 Nov. It's now documented onOutcomeIndicator.Only
openapi.yamlchanges; the endpoint cards inserver.jsdon't mention either field.npm run checkpasses and the YAML parses.Merge timing: the API docs are pre-launch, and both changes describe what production already returns.
Generated by Claude Code