Skip to content

Commit

Permalink
Fix UML property multiplicity terminology
Browse files Browse the repository at this point in the history
Closes #39

Signed-off-by: Johannes Echterhoff <[email protected]>
  • Loading branch information
jechterhoff committed Apr 9, 2024
1 parent 84dee76 commit 7a17df9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions requirements/core/REQ013.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ identifier:: http://www.opengis.net/spec/uml2json/1.0/req/core/property-multipli
[.component,class=part]
--
If the minimum cardinality of a UML property is 1 or greater, and the class that owns the property is not a «union», then the property shall be listed under the "required" properties of the JSON object to which the property belongs.
If the multiplicity lower bound of a UML property is 1 or greater, and the class that owns the property is not a «union», then the property shall be listed under the "required" properties of the JSON object to which the property belongs.
--
[.component,class=part]
--
In addition, if the maximum cardinality of the property is greater than 1, then the JSON Schema definition for the property shall be created as follows.
In addition, if the multiplicity upper bound of the property is greater than 1, then the JSON Schema definition for the property shall be created as follows.
* The "type" of the JSON property is set to "array", with the "items" keyword containing the JSON Schema constraints that are created to represent the value type of the property.
* If the minimum cardinality is greater than 0, it is encoded using the "minItems" keyword.
* If the maximum cardinality is not unbounded, it is encoded using the "maxItems" keyword.
* If the multiplicity lower bound is greater than 0, it is encoded using the "minItems" keyword.
* If the multiplicity upper bound is not unbounded, it is encoded using the "maxItems" keyword.
* If the values of the property are defined to be unique (which is the default for UML properties), then that is represented by adding `"uniqueItems": true`.
--
====

0 comments on commit 7a17df9

Please sign in to comment.