commit 002d268a776199962f471811aae55f77dc55b24b
parent 527cc0ea71a9eec4f0228172e4b5a858f6a992b0
Author: Lynn Foster <foster.j.lynn@gmail.com>
Date: Fri, 8 Dec 2017 17:07:45 -0600
Merge pull request #250 from valueflows/json-schemas
added process schema
Diffstat:
1 file changed, 71 insertions(+), 0 deletions(-)
diff --git a/json-schemas/Process.json b/json-schemas/Process.json
@@ -0,0 +1,71 @@
+{
+ "$schema": "http://json-schema.org/draft-06/schema#",
+ "id": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Process.json",
+ "title": "Process",
+ "description": "An activity that changes inputs into outputs. It could transform or transport economic resource(s), as well as simply issuing a resource so that it is available.",
+ "type": "object",
+ "properties": {
+ "name": {
+ "description": "An informal or formal textual identifier for an object. Does not imply uniqueness.",
+ "type": "string"
+ },
+ "plannedStart": {
+ "description": "The planned or estimated starting date and optionally time of the process.",
+ "type": "string",
+ "format": "date-time"
+ },
+ "plannedDuration": {
+ "description": "The planned or estimated duration of the process.",
+ "type": "object"
+ },
+ "processClassifiedAs": {
+ "description": "The primary classification that describes a process, at any level of granularity.",
+ "type": "object",
+ "$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/ProcessClassification.json"
+ },
+ "isFinished": {
+ "type": "boolean"
+ },
+ "note": {
+ "description": "A textual comment or description.",
+ "type": "string"
+ },
+ "inputs": {
+ "description": "Economic events that bring tangible or intangible resources into the process.",
+ "type": "array",
+ "items": {
+ "$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/EconomicEvent.json"
+ },
+ "minItems": 1,
+ "uniqueItems": true
+ },
+ "outputs": {
+ "description": "Economic events that produce or change or move tangible or intangible resources.",
+ "type": "array",
+ "items": {
+ "$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/EconomicEvent.json"
+ },
+ "minItems": 1,
+ "uniqueItems": true
+ },
+ "committedInputs": {
+ "description": "Planned commitments that bring tangible or intangible resources into the process.",
+ "type": "array",
+ "items": {
+ "$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Commitment.json"
+ },
+ "minItems": 1,
+ "uniqueItems": true
+ },
+ "committedOutputs": {
+ "description": "Planned commitments that produce or change or move tangible or intangible resources.",
+ "type": "array",
+ "items": {
+ "$ref": "https://raw.githubusercontent.com/valueflows/valueflows/master/json-schemas/Commitment.json"
+ },
+ "minItems": 1,
+ "uniqueItems": true
+ }
+ },
+ "required": ["name", "plannedStart", "plannedDuration"]
+}