Skip to content

Commit 2a5ba91

Browse files
committed
Require valid_from in validity consistency check
1 parent 70d5387 commit 2a5ba91

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/extensions/score_metamodel/metamodel.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,14 +263,13 @@ needs_types:
263263
rationale: ^.+$
264264
# req-Id: tool_req__docs_common_attr_security
265265
security: ^(YES|NO)$
266+
valid_from: ^v(0|[1-9]\d*)\.(0|[1-9]\d*)(\.(0|[1-9]\d*))?$
266267
optional_options:
267268
# req-Id: tool_req__docs_req_attr_reqcov
268269
reqcovered: ^(YES|NO)$
269270
# req-Id: tool_req__docs_req_attr_testcov
270271
testcovered: ^(YES|NO)$
271272
hash: ^.*$
272-
# req-Id: tool_req__docs_req_attr_validity_correctness
273-
valid_from: ^v(0|[1-9]\d*)\.(0|[1-9]\d*)(\.(0|[1-9]\d*))?$
274273
valid_until: ^v(0|[1-9]\d*)\.(0|[1-9]\d*)(\.(0|[1-9]\d*))?$
275274
tags:
276275
- requirement
@@ -292,6 +291,7 @@ needs_types:
292291
status: ^(valid|invalid)$
293292
# req-Id: tool_req__docs_common_attr_description
294293
content: ^[\s\S]+$
294+
valid_from: ^v(0|[1-9]\d*)\.(0|[1-9]\d*)(\.(0|[1-9]\d*))?$
295295
optional_links:
296296
# req-Id: tool_req__docs_req_link_satisfies_allowed
297297
derived_from: stkh_req
@@ -306,7 +306,6 @@ needs_types:
306306
testcovered: ^(YES|NO)$
307307
hash: ^.*$
308308
# req-Id: tool_req__docs_req_attr_validity_correctness
309-
valid_from: ^v(0|[1-9]\d*)\.(0|[1-9]\d*)(\.(0|[1-9]\d*))?$
310309
valid_until: ^v(0|[1-9]\d*)\.(0|[1-9]\d*)(\.(0|[1-9]\d*))?$
311310
tags:
312311
- requirement

0 commit comments

Comments
 (0)