sbmlteam / sbml-specifications

The specification documents for SBML.
6 stars 2 forks source link

fbc v3: empty lists? #396

Closed luciansmith closed 3 months ago

luciansmith commented 1 year ago

In SBML L3, we generally allow empty lists if the list itself is optional. This is to allow people to annotate the list itself, even if there are no elements in it. Another reason is that another package may extend the class of the contained elements, so to the base package, it might look like it has no children at all, as they are all defined in the derived class.

This isn't a hard rule, but it is what I would call a 'goal' of L3 packages. As such, I would recommend that ListOfUserDefniedConstraints and ListOfKeyValuePairs be allowed to be empty.

(Since ListOfUserDefinedConstraintComponents it itself required, it is reasonable for that to require at least one child.)

skeating commented 9 months ago

This needs the images to be changed and the source for the pdf2 images is not available in git

luciansmith commented 3 months ago

Fixed the validation rules corresponding to this change.