Skip to content

Commit

Permalink
Merge branch 'master' into MODFIN-320
Browse files Browse the repository at this point in the history
  • Loading branch information
damien-git authored Jan 18, 2024
2 parents 6038cf7 + a383b40 commit 6dc5389
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 0 deletions.
29 changes: 29 additions & 0 deletions mod-orders/examples/expectCollection.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"toBeExpected": [
{
"poLineId": "3f4f61ab-d3c2-47a9-baa6-c903a4cfba57",
"expected": 2,
"expectPieces": [
{
"id": "fe729e0b-5c56-4f0a-bb3a-33bc405d71a0",
"comment": "Captivating cover art for the first edition"
},
{
"id": "4d6b8cf9-73bd-4b3d-8f1b-5b7cbf02d03a",
"comment": "Intriguing chapter titles and compelling storyline"
}
]
},
{
"poLineId": "7d9fe888-bc7e-4d4e-9241-0b5f2457e0a3",
"expected": 1,
"expectPieces": [
{
"id": "9a2e97e3-5f8b-4b2c-9e27-16c8e8993018",
"comment": "A thought-provoking conclusion in the final chapter"
}
]
}
],
"totalRecords": 3
}
62 changes: 62 additions & 0 deletions mod-orders/schemas/expectCollection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "A collection of expect",
"type": "object",
"properties": {
"toBeExpected": {
"description": "List of expect",
"id": "toBeExpected",
"type": "array",
"items": {
"type": "object",
"properties": {
"poLineId": {
"description": "The id of the expect PO line",
"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}$"
},
"expected": {
"description": "The number of pieces to expect",
"type": "integer"
},
"expectPieces": {
"description": "A collection of piece records",
"type": "array",
"id": "expectPieces",
"items": {
"type": "object",
"properties": {
"id": {
"description": "The id of the piece",
"type": "string",
"$ref": "../../common/schemas/uuid.json"
},
"comment": {
"description": "The free form notes pertaining to the piece",
"type": "string"
}
},
"additionalProperties": false,
"required": [
"id"
]
}
}
},
"additionalProperties": false,
"required": [
"poLineId"
]
}
},
"totalRecords": {
"description": "The total number of pieces to expect in the list",
"type": "integer"
}
},
"additionalProperties": false,
"required": [
"toBeExpected",
"totalRecords"
]
}

0 comments on commit 6dc5389

Please sign in to comment.