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

Refactor error handling #820

Merged
merged 50 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
318bfdc
feat(Specification): Refactor error handling
cdavernas Feb 15, 2024
1f7c5ae
fix(Schema): Fixed the errors.json schema
cdavernas Feb 15, 2024
c446b75
fix(Schema): Fixed the errors.json
cdavernas Feb 15, 2024
a032cbe
fix(Schema): Fixed the errors.json schema
cdavernas Feb 15, 2024
9979afd
Fixed the errors.json schema
cdavernas Feb 15, 2024
117eeb0
fix(Examples): Fixed invalid examples
cdavernas Feb 15, 2024
89d3866
fix(Schemas): Fixed the errors.json schema
cdavernas Feb 15, 2024
b20ff0b
fix(Schema)
cdavernas Feb 15, 2024
0844bf5
fix(Schema)
cdavernas Feb 15, 2024
c113e52
fix(Schema)
cdavernas Feb 15, 2024
7f7cb70
feat(Schema): Added "error" operation, used to throw an error
cdavernas Feb 15, 2024
acae83e
fix: Fixed Schema and Specification to address requested changes
cdavernas Feb 15, 2024
0d067d0
fix(Roadmap): Updated the roadmap
cdavernas Feb 15, 2024
ff1d1f2
Update schema/errors.json
cdavernas Mar 8, 2024
a47b636
Update specification.md
cdavernas Mar 8, 2024
dad2fa0
Update specification.md
cdavernas Mar 8, 2024
3f7bbb8
Update specification.md
cdavernas Mar 8, 2024
503c93f
Update specification.md
cdavernas Mar 8, 2024
75cbfd8
Update specification.md
cdavernas Mar 8, 2024
33cc71b
Update specification.md
cdavernas Mar 8, 2024
2b122bc
Update specification.md
cdavernas Mar 8, 2024
2d9cc48
Updated version in all schema ids
cdavernas May 17, 2024
993915b
Merge branch 'main' into main
cdavernas May 17, 2024
49013fd
Update specification.md
cdavernas May 17, 2024
26557df
Update specification.md
cdavernas May 17, 2024
2e9aa9b
Update specification.md
cdavernas May 17, 2024
aa7f3df
Update specification.md
cdavernas May 17, 2024
b215715
Update specification.md
cdavernas May 17, 2024
42cb30a
Update specification.md
cdavernas May 17, 2024
f808d07
Update specification.md
cdavernas May 17, 2024
2c84916
Update specification.md
cdavernas May 17, 2024
fbb7791
Update specification.md
cdavernas May 17, 2024
4dfab1a
Update specification.md
cdavernas May 17, 2024
131207d
Update specification.md
cdavernas May 17, 2024
b823af0
Update specification.md
cdavernas May 17, 2024
112db02
Update specification.md
cdavernas May 17, 2024
f3a3e0c
Update specification.md
cdavernas May 17, 2024
bac05dc
Update specification.md
cdavernas May 17, 2024
1bbf5be
Update specification.md
cdavernas May 17, 2024
68d1126
Update specification.md
cdavernas May 17, 2024
2867d09
Update specification.md
cdavernas May 17, 2024
4bd9fce
Update specification.md
cdavernas May 17, 2024
8cdb169
Update specification.md
cdavernas May 17, 2024
9f9854d
Update specification.md
cdavernas May 17, 2024
ef42822
Update specification.md
cdavernas May 17, 2024
48df490
Update specification.md
cdavernas May 17, 2024
cbca234
Update specification.md
cdavernas May 17, 2024
be7da4b
Update specification.md
cdavernas May 17, 2024
17433bb
Update specification.md
cdavernas May 17, 2024
0073684
Update specification.md
cdavernas May 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
163 changes: 18 additions & 145 deletions .ci/validation/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 26 additions & 24 deletions examples/new-patient-onboarding.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,36 +17,21 @@
{
"name": "store-patient",
"functionRef": "store-patient",
"retryRef": "services-not-available-retry-strategy",
"retryableErrors": [
"service-not-available"
]
"onErrors": "fault-tolerance"
},
{
"name": "assign-doctor",
"functionRef": "assign-doctor",
"retryRef": "services-not-available-retry-strategy",
"retryableErrors": [
"service-not-available"
]
"onErrors": "fault-tolerance"
},
{
"name": "schedule-appt",
"functionRef": "schedule-appt",
"retryRef": "services-not-available-retry-strategy",
"retryableErrors": [
"service-not-available"
]
"onErrors": "fault-tolerance"
}
]
}
],
"onErrors": [
{
"errorRef": "service-not-available",
"end": true
}
],
"end": true
}
],
Expand All @@ -71,12 +56,29 @@
"operation": "api/services.json#scheduleAppointment"
}
],
"errors": [
{
"name": "service-not-available",
"code": "503"
}
],
"errors": {
"handlers":[
{
"name": "handle-503-errors",
"when":[
{
"status": 503
}
],
"retry": "services-not-available-retry-strategy"
}
],
"policies":[
{
"name": "fault-tolerance",
"handlers":[
{
"refName": "handle-503-errors"
}
]
}
]
},
"retries": [
{
"name": "services-not-available-retry-strategy",
Expand Down
Loading
Loading