Skip to content

Commit

Permalink
[MODORDERS-1209]. Improved field names
Browse files Browse the repository at this point in the history
  • Loading branch information
BKadirkhodjaev committed Nov 28, 2024
1 parent 2f23a32 commit 1756dce
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion mod-orders/examples/claimingCollection.sample
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"claiming": [
"claimingPieceIds": [
"123e4567-e89b-12d3-a456-426614174000",
"123e4567-e89b-12d3-a456-426614174001"
],
Expand Down
6 changes: 3 additions & 3 deletions mod-orders/examples/claimingResults.sample
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"claimingResults": [
"claimingPieceResults": [
{
"pieceId": "123e4567-e89b-12d3-a456-426614174000",
"type": "success"
"status": "success"
},
{
"pieceId": "123e4567-e89b-12d3-a456-426614174001",
"type": "failure",
"status": "failure",
"error": {
"code": "CLAIM_ERROR",
"message": "Failed to claim piece"
Expand Down
6 changes: 3 additions & 3 deletions mod-orders/schemas/claimingCollection.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"description": "A collection of claiming pieces",
"type": "object",
"properties": {
"claiming": {
"claimingPieceIds": {
"description": "List of claiming pieces",
"id": "claiming",
"id": "claimingPieceIds",
"type": "array",
"items": {
"description": "The id of the piece",
Expand All @@ -20,7 +20,7 @@
},
"additionalProperties": false,
"required": [
"claiming",
"claimingPieceIds",
"totalRecords"
]
}
8 changes: 4 additions & 4 deletions mod-orders/schemas/claimingResults.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"description": "A collection of claiming results",
"type": "object",
"properties": {
"claimingResults": {
"claimingPieceResults": {
"description": "List of claiming results",
"id": "claimingResults",
"id": "claimingPieceResults",
"type": "array",
"items": {
"type": "object",
Expand All @@ -15,7 +15,7 @@
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$"
},
"type": {
"status": {
"description": "Resulting status of the processed piece record",
"type": "string",
"enum": [
Expand Down Expand Up @@ -43,7 +43,7 @@
},
"additionalProperties": false,
"required": [
"claimingResults",
"claimingPieceResults",
"totalRecords"
]
}

0 comments on commit 1756dce

Please sign in to comment.