Skip to content

Add endpoint.response.actionAttemptType#153

Merged
andrii-balitskyi merged 7 commits intomainfrom
endpoint-action-attempt-type
Feb 4, 2025
Merged

Add endpoint.response.actionAttemptType#153
andrii-balitskyi merged 7 commits intomainfrom
endpoint-action-attempt-type

Conversation

@andrii-balitskyi
Copy link
Contributor

@andrii-balitskyi andrii-balitskyi commented Jan 27, 2025

Closes #148

  • Add endpoint.actionAttemptType
  • Update test fixture

@andrii-balitskyi andrii-balitskyi requested a review from a team as a code owner January 27, 2025 14:12
@vercel
Copy link

vercel bot commented Jan 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
blueprint ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 3, 2025 8:12pm

@andrii-balitskyi andrii-balitskyi changed the title Add endpoint.actionAttemptType Add endpoint.response.actionAttemptType Jan 27, 2025
@razor-x
Copy link
Member

razor-x commented Jan 27, 2025

We need some way to validate this: if an endpoint returns an action attempt but does not set the type we can throw a helpful error.

@andrii-balitskyi
Copy link
Contributor Author

@razor-x 76e9675

responseKey === 'action_attempt' &&
!isPathExcluded
) {
throw new Error(`Missing action_attempt_type for path ${path}`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also validate the action attempt type is a valid one?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@andrii-balitskyi andrii-balitskyi merged commit 9cd84a8 into main Feb 4, 2025
20 checks passed
@andrii-balitskyi andrii-balitskyi deleted the endpoint-action-attempt-type branch February 4, 2025 14:01
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.

Add action attempts to blueprint

3 participants