-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make
DataStructureDefinition
dimensions customizable (#45)
- Loading branch information
1 parent
46c41a5
commit ef52aa2
Showing
10 changed files
with
131 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
$schema: 'https://json-schema.org/draft/2020-12/schema' | ||
title: GenericCodeList | ||
description: > | ||
This schema is used for the validation of generic code-list yaml files. | ||
type: array | ||
items: | ||
$ref: '#/definitions/Code' | ||
|
||
definitions: | ||
|
||
Code: | ||
oneOf: | ||
- type: object | ||
patternProperties: | ||
# The key of this dictionary is the code name | ||
^.+$: | ||
type: object | ||
# The lower-level dictionary are the attributes | ||
additionalProperties: | ||
type: [ string, number, boolean, "null" ] | ||
additionalProperties: false | ||
minProperties: 1 | ||
maxProperties: 1 | ||
- type: string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- common: | ||
- World |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- scen_a: | ||
attribute: value | ||
- scen_b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- <Fuel>: | ||
- Coal: | ||
definition: coal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
- Primary Energy: | ||
definition: Total primary energy consumption | ||
unit: EJ/yr | ||
- Primary Energy|<Fuel>: | ||
definition: Primary energy consumption of <Fuel> | ||
unit: EJ/yr | ||
- Share|<Fuel>: | ||
definition: Share of <Fuel> in the total primary energy mix | ||
unit: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters