KnownLicenseEntity.schema.json 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema",
  3. "$id": "https://joystream.org/KnownLicenseEntity.schema.json",
  4. "title": "KnownLicenseEntity",
  5. "description": "JSON schema for entities based on KnownLicense runtime schema",
  6. "type": "object",
  7. "additionalProperties": false,
  8. "required": [
  9. "code"
  10. ],
  11. "properties": {
  12. "code": {
  13. "type": "string",
  14. "maxLength": 16,
  15. "description": "Short, commonly recognized code of the licence (ie. CC_BY_SA)"
  16. },
  17. "name": {
  18. "type": "string",
  19. "maxLength": 64,
  20. "description": "Full, descriptive name of the license (ie. Creative Commons - Attribution-NonCommercial-NoDerivs)"
  21. },
  22. "description": {
  23. "type": "string",
  24. "maxLength": 1024,
  25. "description": "Short description of the license conditions"
  26. },
  27. "url": {
  28. "type": "string",
  29. "maxLength": 256,
  30. "description": "An url pointing to full license content"
  31. }
  32. }
  33. }