Assets.schema.json 914 B

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema",
  3. "$id": "https://joystream.org/Assets.schema.json",
  4. "title": "Assets",
  5. "description": "List of assets to upload/reupload",
  6. "type": "object",
  7. "required": ["bagId", "assets"],
  8. "properties": {
  9. "bagId": {
  10. "type": "string",
  11. "description": "Target bag id"
  12. },
  13. "assets": {
  14. "type": "array",
  15. "description": "List of assets to upload",
  16. "items": {
  17. "type": "object",
  18. "required": ["objectId", "path"],
  19. "additionalProperties": false,
  20. "properties": {
  21. "objectId": {
  22. "type": "string",
  23. "description": "Already existing data object ID",
  24. "pattern": "[0-9]+"
  25. },
  26. "path": {
  27. "type": "string",
  28. "description": "Path to the content file (relative to input json file)"
  29. }
  30. }
  31. }
  32. }
  33. }
  34. }