Niru

Untitled

Jan 27th, 2023
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.17 KB | None | 0 0
  1. {
  2. "$schema": "http://json-schema.org/draft-06/schema#",
  3. "$ref": "#/definitions/Welcome9",
  4. "definitions": {
  5. "Welcome9": {
  6. "type": "object",
  7. "additionalProperties": false,
  8. "properties": {
  9. "count": {
  10. "type": "integer"
  11. },
  12. "categories": {
  13. "type": "array",
  14. "items": {
  15. "$ref": "#/definitions/Category"
  16. }
  17. }
  18. },
  19. "required": [
  20. "categories",
  21. "count"
  22. ],
  23. "title": "Welcome9"
  24. },
  25. "Category": {
  26. "type": "object",
  27. "additionalProperties": false,
  28. "properties": {
  29. "categoryDetails": {
  30. "$ref": "#/definitions/CategoryDetails"
  31. },
  32. "children": {
  33. "type": "array",
  34. "items": {
  35. "$ref": "#/definitions/Category"
  36. }
  37. },
  38. "weight": {
  39. "type": "number"
  40. }
  41. },
  42. "required": [
  43. "categoryDetails",
  44. "children",
  45. "weight"
  46. ],
  47. "title": "Category"
  48. },
  49. "CategoryDetails": {
  50. "type": "object",
  51. "additionalProperties": false,
  52. "properties": {
  53. "categoryId": {
  54. "type": "string",
  55. "format": "integer"
  56. },
  57. "categoryName": {
  58. "type": "string"
  59. },
  60. "taxonomy": {
  61. "type": "string"
  62. },
  63. "categoryLink": {
  64. "type": "string"
  65. },
  66. "canonicalURL": {
  67. "type": "string"
  68. },
  69. "childList": {
  70. "type": "array",
  71. "items": {
  72. "type": "string",
  73. "format": "integer"
  74. }
  75. },
  76. "imageURL": {
  77. "anyOf": [
  78. {
  79. "type": "null"
  80. },
  81. {
  82. "type": "string"
  83. }
  84. ]
  85. },
  86. "mainImageAltTag": {
  87. "anyOf": [
  88. {
  89. "type": "null"
  90. },
  91. {
  92. "type": "string"
  93. }
  94. ]
  95. },
  96. "desc": {
  97. "anyOf": [
  98. {
  99. "type": "null"
  100. },
  101. {
  102. "type": "string"
  103. }
  104. ]
  105. },
  106. "shortDesc": {
  107. "anyOf": [
  108. {
  109. "type": "null"
  110. },
  111. {
  112. "type": "string"
  113. }
  114. ]
  115. },
  116. "metaDescription": {
  117. "anyOf": [
  118. {
  119. "type": "null"
  120. },
  121. {
  122. "type": "string"
  123. }
  124. ]
  125. },
  126. "metaTitle": {
  127. "anyOf": [
  128. {
  129. "type": "null"
  130. },
  131. {
  132. "type": "string"
  133. }
  134. ]
  135. },
  136. "metaKeywords": {
  137. "type": "array",
  138. "items": {
  139. "type": "string"
  140. }
  141. },
  142. "metaTags": {
  143. "type": "array",
  144. "items": {
  145. "type": "string"
  146. }
  147. },
  148. "weight": {
  149. "type": "number"
  150. },
  151. "active": {
  152. "type": "boolean"
  153. }
  154. },
  155. "required": [
  156. "active",
  157. "canonicalURL",
  158. "categoryId",
  159. "categoryLink",
  160. "categoryName",
  161. "childList",
  162. "desc",
  163. "imageURL",
  164. "mainImageAltTag",
  165. "metaDescription",
  166. "metaKeywords",
  167. "metaTags",
  168. "metaTitle",
  169. "shortDesc",
  170. "taxonomy",
  171. "weight"
  172. ],
  173. "title": "CategoryDetails"
  174. }
  175. }
  176. }
  177.  
Advertisement
Add Comment
Please, Sign In to add comment