Skip to content

Commit

Permalink
Allow NumberOfResultsBefore or NumberOfResultsAfter to be 0 (#3)
Browse files Browse the repository at this point in the history
* Allow NumberOfResultsBefore or NumberOfResultsAfter to be 0

At this moment the user is forced to select at least one result after even if the user is only interested in one result before.
This commit allows to specify a 0 value, but also allow to omit the element, the system may infer the desired value.
  • Loading branch information
skinkie authored and sgrossberndt committed Feb 26, 2019
1 parent 0d1a71c commit 92248dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OJP_JourneySupport.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -462,12 +462,12 @@
<xs:documentation>parameter to control the number of TRIP results before/after a point in time. May NOT be used when departure time at origin AND arrival time at destination are set</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="NumberOfResultsBefore" type="xs:positiveInteger">
<xs:element name="NumberOfResultsBefore" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>The desired number of trip results before the given time (at origin or destination).</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="NumberOfResultsAfter" type="xs:positiveInteger">
<xs:element name="NumberOfResultsAfter" type="xs:nonNegativeInteger">
<xs:annotation>
<xs:documentation>The desired number of trip results after the given time (at origin or destination).</xs:documentation>
</xs:annotation>
Expand Down

0 comments on commit 92248dd

Please sign in to comment.