response.xsd 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- edited with XMLSpy v2015 rel. 4 (http://www.altova.com) by Donna Hennigar (IBM SWG Canada) -->
  3. <!-- W3C Schema generated by XMLSpy v2015 rel. 4 (http://www.altova.com) -->
  4. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="4.0">
  5. <xs:element name="validationMessage">
  6. <xs:complexType>
  7. <xs:sequence>
  8. <xs:element name="location" type="xs:string">
  9. <xs:annotation>
  10. <xs:documentation>The module path that has indexing to locate the validated object or property</xs:documentation>
  11. </xs:annotation>
  12. </xs:element>
  13. <xs:element name="errorCode" type="xs:string">
  14. <xs:annotation>
  15. <xs:documentation>The error code corresponds to the message</xs:documentation>
  16. </xs:annotation>
  17. </xs:element>
  18. <xs:element name="msg" type="xs:string">
  19. <xs:annotation>
  20. <xs:documentation>The message that is shown to the user</xs:documentation>
  21. </xs:annotation>
  22. </xs:element>
  23. <xs:element name="severity" type="xs:string">
  24. <xs:annotation>
  25. <xs:documentation>The severity level of the rule (error, warning, or info)</xs:documentation>
  26. </xs:annotation>
  27. </xs:element>
  28. <xs:element name="ruleId" type="xs:string">
  29. <xs:annotation>
  30. <xs:documentation>The ID of the registered validation rule that generated the result</xs:documentation>
  31. </xs:annotation>
  32. </xs:element>
  33. <xs:element name="detailMsg" type="xs:string" minOccurs="0">
  34. <xs:annotation>
  35. <xs:documentation>The detailed message from the query engine</xs:documentation>
  36. </xs:annotation>
  37. </xs:element>
  38. <xs:element name="errorData" minOccurs="0">
  39. <xs:annotation>
  40. <xs:documentation>Arbitrary data produced by the validation rule to aid in further describing the result and to help quick fix handlers solve the problem</xs:documentation>
  41. </xs:annotation>
  42. <xs:complexType>
  43. <xs:sequence>
  44. <xs:element name="line" type="xs:string"/>
  45. <xs:element name="character" type="xs:string"/>
  46. </xs:sequence>
  47. </xs:complexType>
  48. </xs:element>
  49. <xs:element name="type" type="xs:string">
  50. <xs:annotation>
  51. <xs:documentation>The type of the rule. This would allow for grouping of validation results that pertain to a particular area of interest, e.g. grouping all validation rules by type "expression"</xs:documentation>
  52. </xs:annotation>
  53. </xs:element>
  54. </xs:sequence>
  55. </xs:complexType>
  56. </xs:element>
  57. <xs:element name="feedback">
  58. <xs:complexType>
  59. <xs:sequence>
  60. <xs:element name="data">
  61. <xs:annotation>
  62. <xs:documentation>The validation data presented to the user</xs:documentation>
  63. </xs:annotation>
  64. <xs:complexType>
  65. <xs:sequence>
  66. <xs:element ref="validationMessage" minOccurs="0" maxOccurs="unbounded"/>
  67. </xs:sequence>
  68. </xs:complexType>
  69. </xs:element>
  70. <xs:element name="msg" maxOccurs="unbounded">
  71. <xs:annotation>
  72. <xs:documentation>Statistics information about the validation process, such as elapsed time, total numbers of results, etc.</xs:documentation>
  73. </xs:annotation>
  74. <xs:complexType>
  75. <xs:sequence>
  76. <xs:element name="severity" type="xs:string">
  77. <xs:annotation>
  78. <xs:documentation>is it always info level?</xs:documentation>
  79. </xs:annotation>
  80. </xs:element>
  81. <xs:element name="text" type="xs:string">
  82. <xs:annotation>
  83. <xs:documentation>Example: Total number of warnings: 3, errors: 1</xs:documentation>
  84. </xs:annotation>
  85. </xs:element>
  86. </xs:sequence>
  87. </xs:complexType>
  88. </xs:element>
  89. </xs:sequence>
  90. </xs:complexType>
  91. </xs:element>
  92. </xs:schema>