-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix openapi validator validateResponses config (0.117) (#9737)
Fix openapi validator validateResponses config (#9736) - Fix openapi validator validateResponses config - Change create2 evm address not found message - Fix openapi spec Signed-off-by: Xin Li <[email protected]>
- Loading branch information
1 parent
66eb8f7
commit 2b1575d
Showing
7 changed files
with
73 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
hedera-mirror-rest/__tests__/specs/contracts/{id}/results/logs/not-found.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"description": "Contract logs api call for a specific contract using contract id with varied filters and no matching results", | ||
"setup": {}, | ||
"tests": [ | ||
{ | ||
"url": "/api/v1/contracts/0.0.5001/results/logs", | ||
"responseStatus": 200, | ||
"responseJson": { | ||
"logs": [], | ||
"links": { | ||
"next": null | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "/api/v1/contracts/0x5555555555555555555555555555555555555555/results/logs", | ||
"responseStatus": 404, | ||
"responseJson": { | ||
"_status": { | ||
"messages": [ | ||
{ | ||
"message": "No contract with the given evm address 0x5555555555555555555555555555555555555555 has been found." | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
43 changes: 29 additions & 14 deletions
43
hedera-mirror-rest/__tests__/specs/contracts/{id}/results/not-found.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,33 @@ | ||
{ | ||
"description": "Contract results api call for a specific contract using contract id with varied filters and no matching results", | ||
"setup": { | ||
"contractresults": [] | ||
}, | ||
"urls": [ | ||
"/api/v1/contracts/0.0.5001/results", | ||
"/api/v1/contracts/0.0.5001/results?from=987654", | ||
"/api/v1/contracts/0.0.5001/results?timestamp=987654.000123456" | ||
], | ||
"responseStatus": 200, | ||
"responseJson": { | ||
"results": [], | ||
"links": { | ||
"next": null | ||
"setup": {}, | ||
"tests": [ | ||
{ | ||
"urls": [ | ||
"/api/v1/contracts/0.0.5001/results", | ||
"/api/v1/contracts/0.0.5001/results?from=987654", | ||
"/api/v1/contracts/0.0.5001/results?timestamp=987654.000123456" | ||
], | ||
"responseStatus": 200, | ||
"responseJson": { | ||
"results": [], | ||
"links": { | ||
"next": null | ||
} | ||
} | ||
}, | ||
{ | ||
"url": "/api/v1/contracts/0x5555555555555555555555555555555555555555/results", | ||
"responseStatus": 404, | ||
"responseJson": { | ||
"_status": { | ||
"messages": [ | ||
{ | ||
"message": "No contract with the given evm address 0x5555555555555555555555555555555555555555 has been found." | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters