LanguageRef.schema.json 743 B

1234567891011121314151617181920212223242526
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema",
  3. "$id": "https://joystream.org/LanguageReference.schema.json",
  4. "title": "LanguageReference",
  5. "description": "JSON schema for reference to Language entity based on runtime schema",
  6. "anyOf": [
  7. {
  8. "type": "object",
  9. "additionalProperties": false,
  10. "required": [
  11. "Code"
  12. ],
  13. "properties": {
  14. "Code": {
  15. "type": "string",
  16. "maxLength": 2,
  17. "description": "ISO 639-1 code of the language (ie. en)"
  18. }
  19. }
  20. },
  21. {
  22. "type": "integer",
  23. "minimum": 0
  24. }
  25. ]
  26. }