meta-schema.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. {
  2. "$schema": "http://json-schema.org/draft-07/schema#",
  3. "$id": "https://raw.githubusercontent.com/elyra-ai/elyra/main/elyra/metadata/schemas/meta-schema.json",
  4. "title": "Meta-schema for metadata service schemas",
  5. "properties": {
  6. "schemaspace_id": {
  7. "description": "The ID of the schemaspace in which this schema and its instances resides.",
  8. "type": "string",
  9. "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"
  10. },
  11. "name": {
  12. "description": "The name of the schema.",
  13. "type": "string",
  14. "pattern": "^[a-z][a-z0-9-_]*[a-z0-9]$"
  15. },
  16. "description": {
  17. "title": "Description",
  18. "description": "Description of this schema.",
  19. "type": "string",
  20. "maxLength": 80
  21. },
  22. "metadata_class_name": {
  23. "title": "Metadata Instance Class",
  24. "description": "Class used by metadata service to alter instances on load, save, and deletion.",
  25. "type": "string"
  26. },
  27. "deprecated": {
  28. "title": "Deprecated",
  29. "description": "Indicates this schema is deprecated. When deprecated, the schema can only be retrieved by name.",
  30. "type": "boolean"
  31. },
  32. "properties": {
  33. "type": "object",
  34. "required": ["schema_name", "display_name", "metadata"],
  35. "additionalProperties": true
  36. }
  37. },
  38. "required": ["schemaspace_id", "name", "properties"]
  39. }