Skip to content

Commit 517a166

Browse files
authored
Merge pull request #94 from riscv-software-src/86-add-schema-check-to-extension-to-ensure-that-ratified_date-is-provided-if-status-==-ratified
Add schema check to ensure ratification date is given is state is rat…
2 parents c8e0a93 + 0e0b327 commit 517a166

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

schemas/ext_schema.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@
9595
"items": {
9696
"type": "object",
9797
"required": ["version", "state"],
98+
"if": {
99+
"properties": {
100+
"state": {
101+
"const": "ratified"
102+
}
103+
}
104+
},
105+
"then": {
106+
"required": ["ratification_date"]
107+
},
98108
"properties": {
99109
"version": {
100110
"$ref": "schema_defs.json#/$defs/extension_version"

0 commit comments

Comments
 (0)