Definition of MarkValueInfoData (SchoolAttendanceHistory/SchoolAttended/MarkingSystems/MarkValueInfoData) doesn't match spec/XSD

Bug #1053309 reported by Mark Reichert
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open ADK for C#/.NET
New
Undecided
Unassigned

Bug Description

The definition of MarkValueInfoData (roughly the following with mostly simple fields):

public class MarkValueInfoData : SifKeyedElement
 {
  public MarkValueInfoData();
  public MarkValueInfoData(string refId);
  protected MarkValueInfoData(SerializationInfo info, StreamingContext context);

  public override IElementDef[] KeyFields { get; }
  public Letter Letter { get; set; }
  public string Name { get; set; }
  public string Narrative { get; set; }
  public int? Numeric { get; set; }
  public decimal? Percentage { get; set; }
  public string RefId { get; set; }

  public void SetLetter(bool? IsAccepted);
 }

doesn't match the SIF spec/schema whatsoever. It's definition with mostly complex elements (just pulled from one of the 2.x versions) is:

                        <xs:element name="MarkValueInfoData" maxOccurs="unbounded">
                          <xs:complexType>
                            <xs:sequence>
                              <xs:element name="Name" type="xs:string" />
                              <xs:element name="Percentage" minOccurs="0" nillable="true">
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="Minimum" minOccurs="0" nillable="true" type="xs:decimal" />
                                    <xs:element name="Maximum" minOccurs="0" nillable="true" type="xs:decimal" />
                                  </xs:sequence>
                                </xs:complexType>
                              </xs:element>
                              <xs:element name="Numeric" minOccurs="0" nillable="true">
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="Precision" minOccurs="0" nillable="true" type="xs:unsignedInt" />
                                    <xs:element name="Scale" minOccurs="0" nillable="true" type="xs:unsignedInt" />
                                    <xs:element name="Low" minOccurs="0" nillable="true" type="xs:decimal" />
                                    <xs:element name="High" minOccurs="0" nillable="true" type="xs:decimal" />
                                  </xs:sequence>
                                </xs:complexType>
                              </xs:element>
                              <xs:element name="Letter" minOccurs="0" nillable="true">
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="ValidMark" maxOccurs="unbounded">
                                      <xs:complexType>
                                        <xs:sequence>
                                          <xs:element name="Code" type="xs:token" />
                                          <xs:element name="NumericEquivalent" minOccurs="0" nillable="true" type="xs:decimal" />
                                          <xs:element name="Description" minOccurs="0" nillable="true" type="xs:string" />
                                        </xs:sequence>
                                      </xs:complexType>
                                    </xs:element>
                                  </xs:sequence>
                                </xs:complexType>
                                <xs:key name="LetterKey1">
                                  <xs:selector xpath="./sif:ValidMark" />
                                  <xs:field xpath="./sif:Code" />
                                </xs:key>
                              </xs:element>
                              <xs:element name="Narrative" minOccurs="0" nillable="true">
                                <xs:complexType>
                                  <xs:sequence>
                                    <xs:element name="MaximumSize" minOccurs="0" nillable="true" type="xs:unsignedInt" />
                                  </xs:sequence>
                                </xs:complexType>
                              </xs:element>
                            </xs:sequence>
                            <xs:attribute name="RefId" use="required" type="sif:RefIdType" />
                          </xs:complexType>
                        </xs:element>

This is an issue in both the java and csharp projects, MarkValueInfoData.java/.cs, but really adk-generator files ETranscripts.xml throughout the java distribution.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.