package-schema.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "type": "object",
  4. "properties": {
  5. "url": {
  6. "$ref": "#/definitions/saneUrl",
  7. "description": "Points to the base URL of hosted package.json and services.json files, used to automatically fetch the latest version."
  8. },
  9. "version": {
  10. "type": "integer"
  11. },
  12. "files": {
  13. "type": "array",
  14. "items": {
  15. "type": "object",
  16. "properties": {
  17. "name": {
  18. "type": "string",
  19. "description": "Filename to read,, containing service definitions."
  20. },
  21. "version": {
  22. "type": "integer",
  23. "description": "This value should be bumped any time the file defined by the 'name' field is changed. This value will be used when determining whether a new version is available."
  24. }
  25. },
  26. "required": [
  27. "name",
  28. "version"
  29. ]
  30. },
  31. "description": "List of files to read, each containing a list of services.",
  32. "additionalProperties": false
  33. }
  34. },
  35. "required": [
  36. "url",
  37. "version",
  38. "files"
  39. ],
  40. "definitions": {
  41. "saneUrl": {
  42. "type": "string",
  43. "format": "uri",
  44. "pattern": "^https?://"
  45. }
  46. }
  47. }