Skip to content

Commit

Permalink
Add Problem element to LineInformationResponse (#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
ue71603 authored Jan 23, 2023
1 parent 7b2033f commit 2fc6516
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 3 deletions.
38 changes: 38 additions & 0 deletions OJP/OJP_Lines.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
</xs:annotation>
<xs:complexType name="LineResultStructure">
<xs:sequence>
<xs:element name="Problem" type="LineInformationProblemStructure" minOccurs="0" maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>Problems related to this Line result.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="LineRef" type="siri:LineRefStructure">
<xs:annotation>
<xs:documentation>Reference to the LINE.</xs:documentation>
Expand All @@ -47,4 +52,37 @@
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:annotation>
<xs:documentation>========================================== Problems ==========================================</xs:documentation>
</xs:annotation>
<xs:simpleType name="LineInformationProblemTypeEnumeration">
<xs:annotation>
<xs:documentation>Types of problems that may be returned in responses to LINE INFORMATION requests.</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:enumeration value="LINEINFORMATION_LINEUNKNOWN">
<xs:annotation>
<xs:documentation>The requested LINE is unknown.</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="LINEINFORMATION_OTHER">
<xs:annotation>
<xs:documentation>A problem has occurred that does not have a specific problem type.</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:complexType name="LineInformationProblemStructure">
<xs:annotation>
<xs:documentation>Problem that may be returned in responses to LINE information requests.</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="Type" type="LineInformationProblemTypeEnumeration">
<xs:annotation>
<xs:documentation>Type of the LINE information problem.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:group ref="ProblemDetailGroup"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Loading

0 comments on commit 2fc6516

Please sign in to comment.