metadata_schema.json 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {
  2. "title": "JupyterLab Package Metadata",
  3. "version": "0.1.0",
  4. "description": "JupyterLab package.json settings.",
  5. "definitions": {
  6. "extension": {
  7. "type": ["boolean", "string"]
  8. },
  9. "relativePath": {
  10. "type": ["string", "null"]
  11. }
  12. },
  13. "properties": {
  14. "extension": {
  15. "title": "Extension",
  16. "description": "Presence of or relative path to a standard JupyterLab extension",
  17. "$ref": "#/definitions/extension",
  18. "default": false
  19. },
  20. "mimeExtension": {
  21. "title": "Mime extension",
  22. "description": "Presence of or relative path to a JupyterLab MIME renderer extension",
  23. "$ref": "#/definitions/extension",
  24. "default": false
  25. },
  26. "themePath": {
  27. "title": "Theme path",
  28. "description": "The relative path to theme files",
  29. "$ref": "#/definitions/relativePath",
  30. "default": null
  31. },
  32. "schemaDir": {
  33. "title": "Schema directory",
  34. "description": "The relative path to schema files",
  35. "$ref": "#/definitions/relativePath",
  36. "default": null
  37. },
  38. "outputDir": {
  39. "title": "Output directory",
  40. "description": "The relative path to the static assets",
  41. "$ref": "#/definitions/relativePath",
  42. "default": "static"
  43. },
  44. "sharedPackages": {
  45. "title": "Shared packages",
  46. "description": "Packages that should be shared (in addition to core shared packages)",
  47. "type": "array",
  48. "items": {
  49. "type": "string"
  50. }
  51. },
  52. "nonSharedPackages": {
  53. "title": "Non-shared packages",
  54. "description": "Packages that should not be shared (which can include core packages)",
  55. "type": "array",
  56. "items": {
  57. "type": "string"
  58. }
  59. },
  60. "singletonPackages": {
  61. "title": "Singleton packages",
  62. "description": "Packages that should be singletons (in addition to core singleton packages)",
  63. "type": "array",
  64. "items": {
  65. "type": "string"
  66. }
  67. },
  68. "nonSingleltonPackages": {
  69. "title": "Non-singleton packages",
  70. "description": "Packages that should not be singletons (which can include core packages)",
  71. "type": "array",
  72. "items": {
  73. "type": "string"
  74. }
  75. },
  76. "discovery": {
  77. "title": "Discovery metadata",
  78. "description": "Discovery metadata used to for companion packages",
  79. "type": "object"
  80. },
  81. "disabledExtensions": {
  82. "title": "List of disabled extension modules and/or regex patterns for extension ids",
  83. "type": "array",
  84. "items": {
  85. "type": "string"
  86. }
  87. }
  88. },
  89. "additionalProperties": false,
  90. "type": "object"
  91. }