Add minItems: 1 & maxItems: 1 for subscription types#236
Conversation
patrice-conil
left a comment
There was a problem hiding this comment.
Hi @maxl2287,
To ensure that we only have one item in the array, shouldn't we also set maxItems=1
That is a discussion we are having for the Geofencing API, and there consensus is that it makes sense to add the maximum as well, for APIs aligned with this version of Commonalities. In future releases, if several events per subscription are allowed, we can remove the limit. |
minItems: 1 for subscription typesminItems: 1 & maxItems: 1 for subscription types
|
@jlurien @PedroDiez @patrice-conil: I have now also set the |
To me is fine if we have consensus on it @patrice-conil, @shilpa-padgaonkar, @rartych (giving LGTM in advance) |
What type of PR is this?
Add one of the following kinds:
What this PR does / why we need it:
Limits the minimum & maximum of requested
types- list to one item.Which issue(s) this PR fixes:
Fixes #235