categories.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "type": "array",
  4. "title": "Category information for integrations.",
  5. "items": {
  6. "$ref": "#/$defs/category"
  7. },
  8. "$defs": {
  9. "category": {
  10. "type": "object",
  11. "description": "An entry for a single category.",
  12. "properties": {
  13. "id": {
  14. "$ref": "./shared.json#/$defs/id"
  15. },
  16. "name": {
  17. "type": "string",
  18. "minLength": 1,
  19. "description": "The display name for the category."
  20. },
  21. "description": {
  22. "type": "string",
  23. "description": "A description of the category."
  24. },
  25. "most_popular": {
  26. "type": "boolean",
  27. "description": "Indicates if the category should show up in the initial list of categories, or only in the full expanded list."
  28. },
  29. "priority": {
  30. "type": "integer",
  31. "description": "Indicates sort order for categories that are marked as most popular."
  32. },
  33. "collector_default": {
  34. "type": "boolean",
  35. "description": "Indicates that the category should be added to collector integrations that list no categories."
  36. },
  37. "children": {
  38. "type": "array",
  39. "description": "A list of categories that are children of this category.",
  40. "items": {
  41. "$ref": "#/$defs/category"
  42. }
  43. }
  44. },
  45. "required": [
  46. "id",
  47. "name",
  48. "description",
  49. "most_popular",
  50. "priority",
  51. "children"
  52. ]
  53. }
  54. }
  55. }