-
Notifications
You must be signed in to change notification settings - Fork 12
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
Define VATRate as percentage instead of enum #228
Conversation
OJP/OJP_FareSupport.xsd
Outdated
@@ -273,9 +261,9 @@ | |||
<xs:documentation>iso 4217 currency code, e.g. EUR for Euro or GBP for Pound Sterling </xs:documentation> | |||
</xs:annotation> | |||
</xs:element> | |||
<xs:element name="VatRate" type="VatRateEnumeration" minOccurs="0"> | |||
<xs:element name="VatRate" type="xs:decimal" minOccurs="0"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Given this being a percentage. Something like 0-100 as limits?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skinkie in Siri we have a percentage and it was also an xsd:decimal. I already had a class prepared. and there is one in DATEX II, but I thought best not to create new discrepancies. What do you think?
siri_journey-v2.0.xsd
<xsd:element name="Percentage" type="xsd:decimal" minOccurs="0"> <xsd:annotation> <xsd:documentation>Percentage along link that VEHICLE has travelled.</xsd:documentation> </xsd:annotation> </xsd:element>
DATEXIISchema_1_0_1_0.xsd:
<xs:simpleType name="Percentage">
xs:annotation
xs:documentationA measure of percentage.</xs:documentation>
</xs:annotation>
<xs:restriction base="D2LogicalModel:Float"/>
</xs:simpleType>
percentage will be done |
5c0525c
to
dd41c9c
Compare
166db5f
to
1e513a1
Compare
fixes #225