Arthlol / bpswg

Automatically exported from code.google.com/p/bpswg
0 stars 0 forks source link

Distribution attributes should be mandator in the xsd? #111

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The xsd for the attributes of distribution elements are all optional. These 
should really be mandatory (required).

For example:
<xs:element name="UniformDistribution" ..>
  <xs:complexType>
      <xs:complexContent>
          <xs:extension base="paf:DistributionParameter">
                          <xs:attribute name="min" type="xs:double"/>
              <xs:attribute name="max" type="xs:double"/>
          </xs:extension>
      </xs:complexContent>
  </xs:complexType>
</xs:element>

The min and max attributes are optional. These should really be marked as 
required as there is no sensible default. Same for other distributions too.

Original issue reported on code.google.com by jhor...@lanner.co.uk on 28 Nov 2012 at 2:11

GoogleCodeExporter commented 9 years ago
It was decided on the January 10th meeting that this would not be applied to 
the xsd because we want to retain "transportability" of the incomplete work.

However, a note will be added to the specification about it

Original comment by sringue...@trisotech.com on 11 Jan 2013 at 5:00

GoogleCodeExporter commented 9 years ago
Applied to the spec 1.0 RC2

Original comment by sringue...@trisotech.com on 11 Jan 2013 at 10:12