Update JSON schema

feature/CapEx
Alinson S. Xavier 3 years ago
parent b1d49e1313
commit e4ed05fb98
Signed by: isoron
GPG Key ID: 0DA8E4B9E1109DCA

@ -18,6 +18,9 @@ const schema = {
"time horizon (years)": {
type: "number",
},
"distance metric": {
type: "string",
},
},
required: ["time horizon (years)"],
},
@ -159,6 +162,15 @@ const schema = {
"initial amounts": {
$ref: "#/definitions/InitialAmount",
},
"disposal limit (tonne)": {
$ref: "#/definitions/TimeSeries",
},
"disposal cost ($/tonne)": {
$ref: "#/definitions/TimeSeries",
},
"acquisition cost ($/tonne)": {
$ref: "#/definitions/TimeSeries",
},
},
required: ["transportation cost ($/km/tonne)"],
},

@ -19,9 +19,7 @@
"type": "string"
}
},
"required": [
"time horizon (years)"
]
"required": ["time horizon (years)"]
},
"Plant": {
"type": "object",
@ -50,10 +48,7 @@
"$ref": "#/definitions/PlantLocation"
}
},
"required": [
"input",
"locations"
]
"required": ["input", "locations"]
}
},
"PlantLocation": {
@ -82,9 +77,7 @@
"$ref": "#/definitions/TimeSeries"
}
},
"required": [
"cost ($/tonne)"
]
"required": ["cost ($/tonne)"]
}
},
"storage": {
@ -97,10 +90,7 @@
"type": "number"
}
},
"required": [
"cost ($/tonne)",
"limit (tonne)"
]
"required": ["cost ($/tonne)", "limit (tonne)"]
},
"capacities (tonne)": {
"type": "object",
@ -125,9 +115,7 @@
}
}
},
"required": [
"capacities (tonne)"
]
"required": ["capacities (tonne)"]
}
},
"InitialAmount": {
@ -148,9 +136,7 @@
"$ref": "#/definitions/TimeSeries"
}
},
"required": [
"amount (tonne)"
]
"required": ["amount (tonne)"]
}
},
"Product": {
@ -178,11 +164,12 @@
},
"disposal cost ($/tonne)": {
"$ref": "#/definitions/TimeSeries"
},
"acquisition cost ($/tonne)": {
"$ref": "#/definitions/TimeSeries"
}
},
"required": [
"transportation cost ($/km/tonne)"
]
"required": ["transportation cost ($/km/tonne)"]
}
}
},
@ -198,9 +185,5 @@
"$ref": "#/definitions/Product"
}
},
"required": [
"parameters",
"plants",
"products"
]
"required": ["parameters", "plants", "products"]
}
Loading…
Cancel
Save