response.xsd 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. IBM Cognos Products: moser
  5. (C) Copyright IBM Corp. 2015, 2019
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="7.4">
  9. <xs:element name="validationMessage">
  10. <xs:complexType>
  11. <xs:sequence>
  12. <xs:element name="location" type="xs:string">
  13. <xs:annotation>
  14. <xs:documentation>The module path that has indexing to locate the validated object or property</xs:documentation>
  15. </xs:annotation>
  16. </xs:element>
  17. <xs:element name="errorCode" type="xs:string">
  18. <xs:annotation>
  19. <xs:documentation>The error code corresponds to the message</xs:documentation>
  20. </xs:annotation>
  21. </xs:element>
  22. <xs:element name="msg" type="xs:string">
  23. <xs:annotation>
  24. <xs:documentation>The message that is shown to the user</xs:documentation>
  25. </xs:annotation>
  26. </xs:element>
  27. <xs:element name="severity" type="xs:string">
  28. <xs:annotation>
  29. <xs:documentation>The severity level of the rule (error, warning, or info)</xs:documentation>
  30. </xs:annotation>
  31. </xs:element>
  32. <xs:element name="ruleId" type="xs:string">
  33. <xs:annotation>
  34. <xs:documentation>The ID of the registered validation rule that generated the result</xs:documentation>
  35. </xs:annotation>
  36. </xs:element>
  37. <xs:element name="detailMsg" type="xs:string" minOccurs="0">
  38. <xs:annotation>
  39. <xs:documentation>The detailed message from the query engine</xs:documentation>
  40. </xs:annotation>
  41. </xs:element>
  42. <xs:element name="errorData" minOccurs="0">
  43. <xs:annotation>
  44. <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>
  45. </xs:annotation>
  46. <xs:complexType>
  47. <xs:sequence>
  48. <xs:element name="line" type="xs:string"/>
  49. <xs:element name="character" type="xs:string"/>
  50. </xs:sequence>
  51. </xs:complexType>
  52. </xs:element>
  53. <xs:element name="type" type="xs:string">
  54. <xs:annotation>
  55. <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>
  56. </xs:annotation>
  57. </xs:element>
  58. </xs:sequence>
  59. </xs:complexType>
  60. </xs:element>
  61. <xs:element name="feedback">
  62. <xs:complexType>
  63. <xs:sequence>
  64. <xs:element name="data">
  65. <xs:annotation>
  66. <xs:documentation>The validation data presented to the user</xs:documentation>
  67. </xs:annotation>
  68. <xs:complexType>
  69. <xs:sequence>
  70. <xs:element ref="validationMessage" minOccurs="0" maxOccurs="unbounded"/>
  71. </xs:sequence>
  72. </xs:complexType>
  73. </xs:element>
  74. <xs:element name="msg" maxOccurs="unbounded">
  75. <xs:annotation>
  76. <xs:documentation>Statistics information about the validation process, such as elapsed time, total numbers of results, etc.</xs:documentation>
  77. </xs:annotation>
  78. <xs:complexType>
  79. <xs:sequence>
  80. <xs:element name="severity" type="xs:string">
  81. <xs:annotation>
  82. <xs:documentation>is it always info level?</xs:documentation>
  83. </xs:annotation>
  84. </xs:element>
  85. <xs:element name="text" type="xs:string">
  86. <xs:annotation>
  87. <xs:documentation>Example: Total number of warnings: 3, errors: 1</xs:documentation>
  88. </xs:annotation>
  89. </xs:element>
  90. </xs:sequence>
  91. </xs:complexType>
  92. </xs:element>
  93. </xs:sequence>
  94. </xs:complexType>
  95. </xs:element>
  96. </xs:schema>