Skip to content

Commit 9a3047a

Browse files
authored
Merge pull request crs4#171 from simleo/fix_position_msg
Fix error message for bad position in HowToStep
2 parents a710ab0 + 03a32fc commit 9a3047a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

rocrate_validator/profiles/provenance-run-crate/must/1_howtostep.ttl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ provenance-run-crate:ProvRCHowToStepRequired a sh:NodeShape ;
5252
sh:property [
5353
a sh:PropertyShape ;
5454
sh:name "HowToStep position type" ;
55-
sh:description "If specified, position must be a string representing an integer" ;
55+
sh:description "If specified, position must be an integer or a string representing an integer" ;
5656
sh:path schema:position ;
5757
sh:or (
5858
[ sh:datatype xsd:string ; ]
5959
[ sh:datatype xsd:integer ; ]
6060
) ;
6161
sh:pattern "\\d+" ;
62-
sh:message "If specified, position must be a string representing an integer" ;
62+
sh:message "If specified, position must be an integer or a string representing an integer" ;
6363
] ;
6464
sh:property [
6565
a sh:PropertyShape ;

tests/integration/profiles/provenance-run-crate/test_provrc_howtostep.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,14 +97,14 @@ def test_provrc_howtostep_no_position():
9797
def test_provrc_howtostep_bad_position():
9898
"""\
9999
Test a Provenance Run Crate where a HowToStep has a position that is not
100-
a string representing an integer.
100+
an integer or a string representing an integer.
101101
"""
102102
do_entity_test(
103103
InvalidProvRC().howtostep_bad_position,
104104
Severity.REQUIRED,
105105
False,
106106
["ProvRC HowToStep MUST"],
107-
["If specified, position must be a string representing an integer"],
107+
["If specified, position must be an integer or a string representing an integer"],
108108
profile_identifier="provenance-run-crate"
109109
)
110110

0 commit comments

Comments
 (0)