requirements_schema.json 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "$id": "https://github.com/espressif/esp-idf/blob/master/tools/requirements_schema.json",
  4. "type": "object",
  5. "properties": {
  6. "version": {
  7. "type": "integer",
  8. "description": "Metadata file version"
  9. },
  10. "features": {
  11. "type": "array",
  12. "description": "List of features",
  13. "items": {
  14. "$ref": "#/definitions/featInfo"
  15. }
  16. }
  17. },
  18. "required": [
  19. "version",
  20. "features"
  21. ],
  22. "definitions": {
  23. "featInfo": {
  24. "type": "object",
  25. "description": "Information about one feature",
  26. "properties": {
  27. "name" : {
  28. "description": "Feature name",
  29. "type": "string"
  30. },
  31. "description" : {
  32. "description": "A short description of the feature",
  33. "type": "string"
  34. },
  35. "optional": {
  36. "description": "The feature is optional if the user can choose to not install it",
  37. "type": "boolean"
  38. },
  39. "requirement_path": {
  40. "description": "Path to the requirements file with Python packages",
  41. "type": "string",
  42. "pattern": "^tools/requirements/requirements\\..+\\.txt$"
  43. }
  44. },
  45. "required": [
  46. "name",
  47. "optional",
  48. "requirement_path"
  49. ]
  50. }
  51. }
  52. }