Skip to content

Commit

Permalink
Add enum to status field
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr authored Nov 25, 2024
1 parent e4c20ac commit befb4fa
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions json-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,16 @@
"type": "object",
"properties": {
"order:status": {
"type": "string"
"type": "string",
"enum": [
"orderable",
"ordered",
"pending",
"shipping",
"succeeded",
"failed",
"canceled"
]
},
"order:id": {
"type": "string"
Expand All @@ -197,4 +206,4 @@
"additionalProperties": false
}
}
}
}

0 comments on commit befb4fa

Please sign in to comment.