@pdtf/schemas 0.7.3 → 0.7.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -0,0 +1,40 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://raw.githubusercontent.com/Property-Data-Trust-Framework/schemas/master/src/schemas/minified-pdtf-transaction.json",
4
+ "title": "Property Data Trust Framework Transaction Schema",
5
+ "description": "A schema defining search results containing minimal elements of the PDTF transaction data structure.",
6
+ "type": "array",
7
+ "items": {
8
+ "type": "object",
9
+ "required": [
10
+ "$schema",
11
+ "transactionId",
12
+ "status",
13
+ "uprn",
14
+ "createdAt",
15
+ "updatedAt"
16
+ ],
17
+ "properties": {
18
+ "transactionId": {
19
+ "title": "UUID for the transaction",
20
+ "type": "string",
21
+ "format": "uuid"
22
+ },
23
+ "status": {
24
+ "type": "string",
25
+ "enum": ["active", "cancelled", "completed"]
26
+ },
27
+ "uprn": {
28
+ "type": "integer"
29
+ },
30
+ "createdAt": {
31
+ "type": "string",
32
+ "format": "date-time"
33
+ },
34
+ "updatedAt": {
35
+ "type": "string",
36
+ "format": "date-time"
37
+ }
38
+ }
39
+ }
40
+ }