usnistgov / VoterRecordsInterchange

Common data format specification for voter records interchange data
https://pages.nist.gov/VoterRecordsInterchange
Other
14 stars 2 forks source link

Incorrect XSD group definition for MailingAddress #26

Open JDziurlaj opened 5 months ago

JDziurlaj commented 5 months ago

Organization Name: The Turnout

Organization Type: 1

Document (e.g., VoterRecordsInterchange): UML Model

Comment (Include rationale for comment): The attribute MailingAddress under Voter type uses the Interface Address. This interface is a proxy for the FGDC schema types, externally defined. The schema generation tools make the group pointing to this interface optional when MailingAddress is optional. However, this is incorrect, the group should always be required.

Suggested Change:

Modify the MDA tools to generate the following:

<xsd:element name="MailingAddress" minOccurs="0">
    <xsd:complexType>
        <xsd:sequence>
            <xsd:group ref="Address" minOccurs="1" maxOccurs="1"/>
        </xsd:sequence>
    </xsd:complexType>
</xsd:element>

Organization Type: 1 = Federal, 2 = Industry, 3 = Academia, 4 = Self, 5 = Other