fields_schema_v2.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "$schema": "http://json-schema.org/draft-04/schema#",
  3. "type": "object",
  4. "id": "fields_schema_v2.json",
  5. "properties": {
  6. "version": {
  7. "enum": [2]
  8. },
  9. "services": {
  10. "id": "#/properties/services",
  11. "type": "object",
  12. "patternProperties": {
  13. "^[a-zA-Z0-9._-]+$": {
  14. "$ref": "service_schema_v2.json#/definitions/service"
  15. }
  16. },
  17. "additionalProperties": false
  18. },
  19. "volumes": {
  20. "id": "#/properties/volumes",
  21. "type": "object",
  22. "patternProperties": {
  23. "^[a-zA-Z0-9._-]+$": {
  24. "$ref": "#/definitions/volume"
  25. }
  26. },
  27. "additionalProperties": false
  28. }
  29. },
  30. "definitions": {
  31. "volume": {
  32. "id": "#/definitions/volume",
  33. "type": "object",
  34. "properties": {
  35. "driver": {"type": "string"},
  36. "driver_opts": {
  37. "type": "object",
  38. "patternProperties": {
  39. "^.+$": {"type": ["string", "number"]}
  40. },
  41. "additionalProperties": false
  42. }
  43. }
  44. }
  45. },
  46. "additionalProperties": false
  47. }