remotes.schema.json 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "title": "Remotes",
  4. "type": "array",
  5. "description": "remote-wise list of vehicles and their available versions to build on Custom Build Server",
  6. "items": {
  7. "type": "object",
  8. "properties": {
  9. "name": {
  10. "type": "string",
  11. "description": "Remote name"
  12. },
  13. "url": {
  14. "type": "string",
  15. "description": "Remote url"
  16. },
  17. "vehicles": {
  18. "type": "array",
  19. "description": "list of vehicles listed for building for that remote",
  20. "items": {
  21. "type": "object",
  22. "description": "Vehicle object",
  23. "properties": {
  24. "id": {
  25. "type": "string",
  26. "description": "Vehicle id"
  27. },
  28. "releases": {
  29. "type": "array",
  30. "description": "list of releases for that vehicle",
  31. "items": {
  32. "type": "object",
  33. "properties": {
  34. "release_type": {
  35. "type": "string",
  36. "description": "release type, i.e., stable, beta, master"
  37. },
  38. "version_number": {
  39. "type": "string",
  40. "description": "Ardupilot version number for that release"
  41. },
  42. "commit_reference": {
  43. "type": "string",
  44. "description": "reference to commit for that release, this can be branch name, tag or git hash"
  45. }
  46. },
  47. "required": [
  48. "commit_reference"
  49. ]
  50. }
  51. }
  52. },
  53. "required": [
  54. "id",
  55. "releases"
  56. ]
  57. }
  58. }
  59. },
  60. "required": [
  61. "name",
  62. "url",
  63. "vehicles"
  64. ]
  65. }
  66. }