You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
2.6 KiB

  1. {
  2. "$schema" : "http://json-schema.org/draft-00/hyper-schema#",
  3. "id" : "http://json-schema.org/draft-00/schema#",
  4. "type" : "object",
  5. "properties" : {
  6. "type" : {
  7. "type" : ["string", "array"],
  8. "items" : {
  9. "type" : ["string", {"$ref" : "#"}]
  10. },
  11. "optional" : true,
  12. "default" : "any"
  13. },
  14. "properties" : {
  15. "type" : "object",
  16. "additionalProperties" : {"$ref" : "#"},
  17. "optional" : true,
  18. "default" : {}
  19. },
  20. "items" : {
  21. "type" : [{"$ref" : "#"}, "array"],
  22. "items" : {"$ref" : "#"},
  23. "optional" : true,
  24. "default" : {}
  25. },
  26. "optional" : {
  27. "type" : "boolean",
  28. "optional" : true,
  29. "default" : false
  30. },
  31. "additionalProperties" : {
  32. "type" : [{"$ref" : "#"}, "boolean"],
  33. "optional" : true,
  34. "default" : {}
  35. },
  36. "requires" : {
  37. "type" : ["string", {"$ref" : "#"}],
  38. "optional" : true
  39. },
  40. "minimum" : {
  41. "type" : "number",
  42. "optional" : true
  43. },
  44. "maximum" : {
  45. "type" : "number",
  46. "optional" : true
  47. },
  48. "minimumCanEqual" : {
  49. "type" : "boolean",
  50. "optional" : true,
  51. "requires" : "minimum",
  52. "default" : true
  53. },
  54. "maximumCanEqual" : {
  55. "type" : "boolean",
  56. "optional" : true,
  57. "requires" : "maximum",
  58. "default" : true
  59. },
  60. "minItems" : {
  61. "type" : "integer",
  62. "optional" : true,
  63. "minimum" : 0,
  64. "default" : 0
  65. },
  66. "maxItems" : {
  67. "type" : "integer",
  68. "optional" : true,
  69. "minimum" : 0
  70. },
  71. "pattern" : {
  72. "type" : "string",
  73. "optional" : true,
  74. "format" : "regex"
  75. },
  76. "minLength" : {
  77. "type" : "integer",
  78. "optional" : true,
  79. "minimum" : 0,
  80. "default" : 0
  81. },
  82. "maxLength" : {
  83. "type" : "integer",
  84. "optional" : true
  85. },
  86. "enum" : {
  87. "type" : "array",
  88. "optional" : true,
  89. "minItems" : 1
  90. },
  91. "title" : {
  92. "type" : "string",
  93. "optional" : true
  94. },
  95. "description" : {
  96. "type" : "string",
  97. "optional" : true
  98. },
  99. "format" : {
  100. "type" : "string",
  101. "optional" : true
  102. },
  103. "contentEncoding" : {
  104. "type" : "string",
  105. "optional" : true
  106. },
  107. "default" : {
  108. "type" : "any",
  109. "optional" : true
  110. },
  111. "maxDecimal" : {
  112. "type" : "integer",
  113. "optional" : true,
  114. "minimum" : 0
  115. },
  116. "disallow" : {
  117. "type" : ["string", "array"],
  118. "items" : {"type" : "string"},
  119. "optional" : true
  120. },
  121. "extends" : {
  122. "type" : [{"$ref" : "#"}, "array"],
  123. "items" : {"$ref" : "#"},
  124. "optional" : true,
  125. "default" : {}
  126. }
  127. },
  128. "optional" : true,
  129. "default" : {}
  130. }