Skip to content

Commit

Permalink
TransferLimit should be a xs:nonNegativeInteger
Browse files Browse the repository at this point in the history
Rationale a user might want to request a trip with 0 transfers.
And the TripStructure/Transfers is also a xs:nonNegativeInteger

Thanks @comlaterra for spotting this.
  • Loading branch information
skinkie committed Aug 9, 2018
1 parent 71c1556 commit e3b66b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion OJP_Trips.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
</xs:annotation>
<xs:sequence>
<xs:group ref="BaseTripPolicyGroup"/>
<xs:element name="TransferLimit" type="xs:positiveInteger" minOccurs="0">
<xs:element name="TransferLimit" type="xs:nonNegativeInteger" minOccurs="0">
<xs:annotation>
<xs:documentation>The maximum number of interchanges the user will accept per trip.</xs:documentation>
</xs:annotation>
Expand Down

0 comments on commit e3b66b6

Please sign in to comment.