Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DataItem InitialValue type #17

Open
PatrickRitchie opened this issue Jun 14, 2022 · 0 comments
Open

DataItem InitialValue type #17

PatrickRitchie opened this issue Jun 14, 2022 · 0 comments

Comments

@PatrickRitchie
Copy link

It looks like the type for InitialValue is set to float and the model appears to allow a string.

<xs:element name='InitialValue' type='DataItemNumericValueType' minOccurs='0' maxOccurs='1'>
    <xs:annotation>
        <xs:documentation>
        starting value for a {{block(DataItem)}} as well as the value to be
        set for the {{block(DataItem)}} after a reset event.
        </xs:documentation>
    </xs:annotation>
</xs:element>
<xs:simpleType name='DataItemNumericValueType'>
    <xs:annotation>
        <xs:documentation>
        The constrained value for this data item
        </xs:documentation>
    </xs:annotation>
    <xs:restriction base='xs:float'/>
</xs:simpleType>

image

If this is incorrect, then the below seemed to match the model and pass validation:

<xs:element name='InitialValue' type='DataItemValueType' minOccurs='0' maxOccurs='1'>
    <xs:annotation>
        <xs:documentation>
        starting value for a {{block(DataItem)}} as well as the value to be
        set for the {{block(DataItem)}} after a reset event.
        </xs:documentation>
    </xs:annotation>
</xs:element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant