Skip to content

Commit

Permalink
Merge branch 'main' into pact-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
raimundo-henriques authored Sep 30, 2024
2 parents e086402 + 60cb034 commit 26febf8
Show file tree
Hide file tree
Showing 12 changed files with 1,476 additions and 49 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ build: specs/index.html specs/faq.html
cp -r $^ specs/diagrams ${RELEASE_DIR}/
cp -r TR ${RELEASE_DIR}/

## and now build the rust docs...
make gen/target/doc/ileap_extension/index.html
cp -r gen/target/doc ${RELEASE_DIR}/rustdocs

specs/index.html: specs/index.bs ${DIAGRAMS}
bikeshed spec $< $@

Expand All @@ -29,6 +33,10 @@ clean:
${MMDC}:
npm install @mermaid-js/mermaid-cli

gen/target/doc/ileap_extension/index.html:
cd gen && cargo doc --no-deps --document-private-items --all-features

.PHONY: gen/target/doc/ileap_extension/index.html

azure-upload-preview: build
az storage blob upload-batch \
Expand Down
50 changes: 42 additions & 8 deletions gen/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions gen/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,6 @@ serde_json = "1.0.96"
rust_decimal = "1.35.0"
rust_decimal_macros = "^1.20"
regex = "1.10.4"
quickcheck = "1"
quickcheck_macros = "1"
uuid = { version = "1.8", features = ["v4", "serde"] }
32 changes: 24 additions & 8 deletions gen/schemas/hoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,13 @@
]
},
"energyConsumptionUnit": {
"type": [
"string",
"null"
"anyOf": [
{
"$ref": "#/definitions/EnergyConsumptionUnit"
},
{
"type": "null"
}
]
},
"feedstocks": {
Expand Down Expand Up @@ -168,6 +172,15 @@
"Electric"
]
},
"EnergyConsumptionUnit": {
"type": "string",
"enum": [
"l",
"kg",
"kWh",
"MJ"
]
},
"Feedstock": {
"type": "object",
"required": [
Expand All @@ -178,11 +191,14 @@
"$ref": "#/definitions/FeedstockType"
},
"feedstockPercentage": {
"type": [
"number",
"null"
],
"format": "double"
"anyOf": [
{
"$ref": "#/definitions/Decimal"
},
{
"type": "null"
}
]
},
"regionProvenance": {
"type": [
Expand Down
13 changes: 8 additions & 5 deletions gen/schemas/tad.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,14 @@
"$ref": "#/definitions/FeedstockType"
},
"feedstockPercentage": {
"type": [
"number",
"null"
],
"format": "double"
"anyOf": [
{
"$ref": "#/definitions/Decimal"
},
{
"type": "null"
}
]
},
"regionProvenance": {
"type": [
Expand Down
32 changes: 24 additions & 8 deletions gen/schemas/toc.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,13 @@
]
},
"energyConsumptionUnit": {
"type": [
"string",
"null"
"anyOf": [
{
"$ref": "#/definitions/EnergyConsumptionUnit"
},
{
"type": "null"
}
]
},
"feedstocks": {
Expand Down Expand Up @@ -179,6 +183,15 @@
"Electric"
]
},
"EnergyConsumptionUnit": {
"type": "string",
"enum": [
"l",
"kg",
"kWh",
"MJ"
]
},
"Feedstock": {
"type": "object",
"required": [
Expand All @@ -189,11 +202,14 @@
"$ref": "#/definitions/FeedstockType"
},
"feedstockPercentage": {
"type": [
"number",
"null"
],
"format": "double"
"anyOf": [
{
"$ref": "#/definitions/Decimal"
},
{
"type": "null"
}
]
},
"regionProvenance": {
"type": [
Expand Down
Loading

0 comments on commit 26febf8

Please sign in to comment.