class.schema.json 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. "$schema": "https://json-schema.org/draft/2020-12/schema",
  3. "$id": "class.schema.json",
  4. "title": "Class in EXT_structural_metadata",
  5. "type": "object",
  6. "description": "A class containing a set of properties.",
  7. "allOf": [
  8. {
  9. "$ref": "glTFProperty.schema.json"
  10. }
  11. ],
  12. "properties": {
  13. "name": {
  14. "type": "string",
  15. "minLength": 1,
  16. "description": "The name of the class, e.g. for display purposes."
  17. },
  18. "description": {
  19. "type": "string",
  20. "minLength": 1,
  21. "description": "The description of the class."
  22. },
  23. "properties": {
  24. "type": "object",
  25. "description": "A dictionary, where each key is a property ID and each value is an object defining the property. Property IDs must be alphanumeric identifiers matching the regular expression `^[a-zA-Z_][a-zA-Z0-9_]*$`.",
  26. "minProperties": 1,
  27. "additionalProperties": {
  28. "$ref": "class.property.schema.json"
  29. }
  30. },
  31. "extensions": {},
  32. "extras": {}
  33. }
  34. }