Skip to content

Commit

Permalink
Merge pull request #42 from pnnl/Jsonschema
Browse files Browse the repository at this point in the history
JSON schemas
  • Loading branch information
leijerry888 authored Sep 23, 2024
2 parents 5507a45 + f3ff61e commit 0c00d86
Show file tree
Hide file tree
Showing 6 changed files with 1,355 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ pyyaml = "^6.0.1"
pyqt6 = "^6.6.1"
click = "^8.1.7"
pre-commit = "^3.6.0"
jsonschema= "^4.21.1"
python-levenshtein = "^0.25.1"


[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
53 changes: 53 additions & 0 deletions schema/library.schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"library_item_id": {
"type": "integer",
"minimum": 1
},
"description_brief": {
"type": "string"
},
"description_detailed": {
"type": "string"
},
"description_index": {
"type": "array",
"items": {
"type": "string"
}
},
"description_datapoints": {
"type": "object"
},
"description_assertions": {
"type": "array",
"items": {
"type": "string"
}
},
"description_verification_type": {
"enum": [
"rule-based",
"procedure-based"
]
},
"assertions_type": {
"enum": [
"pass",
"fail"
]
}
},
"required": [
"library_item_id",
"description_brief",
"description_detailed",
"description_index",
"description_datapoints",
"description_verification_type",
"assertions_type"
],
"additionalProperties": false
}
Loading

0 comments on commit 0c00d86

Please sign in to comment.