Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: B/P detailed errors #489

Merged
merged 9 commits into from
Jun 6, 2022
Merged

feat: B/P detailed errors #489

merged 9 commits into from
Jun 6, 2022

Conversation

nickevansuk
Copy link
Collaborator

Changes the tests to expect detailed errors for stage B (and P in approval flow).

There are still quite a few tests failing. I've tried to make sure the only tests that are failing, are failing because the reference implementation is broken (ie the tests should be failing).

Related issue: openactive/open-booking-api#218

(Branch renamed from #488 to pass CI)

@nickevansuk
Copy link
Collaborator Author

nickevansuk commented May 30, 2022

The remaining errors are actually to do with the validator: which doesn’t currently differentiate between responses with OrderItem errors, and responses without.

I’ve updated the validator to do this (openactive/data-models#91) and just checking through the PR now.

The main thing this does is add additional validation modes C1ResponseOrderItemError , C2ResponseOrderItemError, BResponseOrderItemError and PResponseOrderItemError.

We should update this PR so that the test suite uses these too. Once done all tests should pass 🤞

@nickevansuk nickevansuk merged commit 1a5d482 into master Jun 6, 2022
@nickevansuk nickevansuk deleted the coverage/b-detailed-errors branch June 6, 2022 13: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.

2 participants