Skip to content

Commit

Permalink
fixes from validator, updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
fosterlynn committed Aug 22, 2019
1 parent 7978b23 commit 8421680
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion schemas/Process.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"note": {
"description": "A textual comment or description.",
"type": "string"
},
}
},
"required": ["name"]
}
9 changes: 5 additions & 4 deletions schemas/ProductBatch.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/ProductBatch.json",
"title": "ProductBatch",
"description": "A lot or batch, defining a resource produced at the same time in the same way.
From DataFoodConsortium vocabulary https://datafoodconsortium.gitbook.io/dfc-standard-documentation/.",
"description": "A lot or batch, defining a resource produced at the same time in the same way. From DataFoodConsortium vocabulary https://datafoodconsortium.gitbook.io/dfc-standard-documentation/.",
"type": "object",
"properties": {
"batchNumber": {
Expand All @@ -12,11 +11,13 @@ From DataFoodConsortium vocabulary https://datafoodconsortium.gitbook.io/dfc-sta
},
"expiryDate": {
"description": "Expiration date of the batch, commonly used for food.",
"type": "date-time"
"type": "string",
"format": "date-time"
},
"productionDate": {
"description": "Date the batch was produced. Can be derived from the economic event of production.",
"type": "date-time"
"type": "string",
"format": "date-time"
}
},
"required": ["batchNumber"]
Expand Down
6 changes: 3 additions & 3 deletions schemas/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## JSON schemas and examples
## JSON schemas for ValueFlows

This directory is to work with the [Secure Scuttlebutt](https://www.scuttlebutt.nz/) gang on using ValueFlows vocabulary to experiment with creating an economic layer on top of the ssb gossip network, using ssb messages.
Included here are json-schemas for the vocabulary needed for a ValueFlows app, including the vocabulary in the VF namespace, as well as the external pieces of vocabulary we are re-using. This is current as of VF release .3.

The schemas and examples here are not meant to be definitive, and in some cases have short-cut the VF vocabulary to create smaller scoped examples to try out. It is all experimental, and tailored to this experiment right now.
Questions, feedback, and issues welcome.

0 comments on commit 8421680

Please sign in to comment.