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
Revert "Update resource for RFC7801 compliance and Ids"
This reverts commit 325e9b6.
  • Loading branch information
cookeac committed Jul 26, 2021
commit 75576446fd2c6139b10c68efb22ee8262032909b
32 changes: 10 additions & 22 deletions resources/exampleErrorResource.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{
"description": "An extention to a RFC7807 compliant problem response for JSON APIs",
"description": "A human-readable error message describing what went wrong.",

"type": "object",

"properties": {
"type": {
"id": {
"type": "string",
"format": "uri",
"description": "Machine readable URI that uniquely defines the problem."
"description": "A unique identifier for this particular occurrence of the problem"
},
"status": {
"type": "integer",
"description": "The HTTP status code applicable to this problem",
"description": "The HTTP status code applicable to this problem, expressed as a string value",
"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."
@@ -22,25 +25,10 @@
"type": "string",
"description": "A human-readable explanation specific to this occurrence of the problem. Like title, this field’s value can be localized."
},
"instance": {
"type": "string",
"description": "A URI reference or internal JSON document reference to the specific data resource that caused the problem."
},
"instanceIdentification": {
"meta": {
"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."
}

}
}
}