Skip to content

Commit

Permalink
Merge pull request #67 from open-rpc/fix/errors
Browse files Browse the repository at this point in the history
fix: errors
  • Loading branch information
shanejonas authored Feb 13, 2019
2 parents 35c4862 + 3a3f4c5 commit 8c442b2
Showing 1 changed file with 10 additions and 18 deletions.
28 changes: 10 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -559,36 +559,28 @@ For a string to model mapping:
{
"components": {
"schemas": {
"ErrorModel": {
"DogModel": {
"type": "object",
"required": [
"message",
"code"
"breedName",
],
"properties": {
"message": {
"breedName": {
"type": "string"
},
"code": {
"type": "integer",
"minimum": 100,
"maximum": 600
}
}
},
"ExtendedErrorModel": {
"ShepherdDogModel": {
"allOf": [
{
"$ref": "#/components/schemas/ErrorModel"
"$ref": "#/components/schemas/DogModel"
},
{
"type": "object",
"required": [
"rootCause"
],
"properties": {
"rootCause": {
"type": "string"
"hairLength": {
"type": "string",
"enum": ["short", "long"]
}
}
}
Expand Down Expand Up @@ -811,7 +803,7 @@ Components Object Example:
```json
"components": {
"schemas": {
"GeneralError": {
"GeneralModel": {
"type": "object",
"properties": {
"code": {
Expand Down Expand Up @@ -872,7 +864,7 @@ Components Object Example:
"CustomNotFound": {
"code": "1",
"message": "super duper not found doe",
"meaning": "absolute pandemonium"
"data": "absolute pandemonium"
}
}
}
Expand Down

0 comments on commit 8c442b2

Please sign in to comment.