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

Quick changes: improvements to death, treatments, departure, milking #227

Merged
merged 14 commits into from
Jul 29, 2021
Merged
Changes from 1 commit
Commits
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
Prev Previous commit
Next Next commit
Update resource for RFC7801 compliance and Ids
  • Loading branch information
cookeac committed Jul 1, 2021
commit 325e9b6281616726b3b0ce6143d49df1ed053528
32 changes: 22 additions & 10 deletions resources/exampleErrorResource.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,19 @@
{
"description": "A human-readable error message describing what went wrong.",
"description": "An extention to a RFC7807 compliant problem response for JSON APIs",

"type": "object",

"properties": {
"id": {
"type": {
"type": "string",
"description": "A unique identifier for this particular occurrence of the problem"
"format": "uri",
"description": "Machine readable URI that uniquely defines the problem."
},
"status": {
"type": "integer",
"description": "The HTTP status code applicable to this problem, expressed as a string value",
"description": "The HTTP status code applicable to this problem",
"format": "int32"
},
"code": {
"type": "string",
"description": "An application-specific error code, expressed as a string value."
},
"title": {
"type": "string",
"description": "A short, human-readable summary of the problem that SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization."
@@ -25,10 +22,25 @@
"type": "string",
"description": "A human-readable explanation specific to this occurrence of the problem. Like title, this field’s value can be localized."
},
"meta": {
"instance": {
"type": "string",
"description": "A URI reference or internal JSON document reference to the specific data resource that caused the problem."
},
"instanceIdentification": {
"type": "object",
"properties": {

"source": {
"type": "string",
"description": "Identifies the source of the resource as contained in the resource metadata."
},
"sourceId": {
"type": "string",
"description": "Identifies the resource using its source identifier as contained in the resource metadata."
},
"hostId": {
"type": "string",
"description": "If specified, identifies the resource with a unique Id (UUID) in the host system."
}
}
}
}