metadata-test2.json 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. {
  2. "$schema": "https://raw.githubusercontent.com/elyra-ai/elyra/main/elyra/metadata/schemas/meta-schema.json",
  3. "$id": "https://raw.githubusercontent.com/elyra-ai/elyra/main/elyra/metadata/schemas/metadata-test2.json",
  4. "title": "Metadata Test2",
  5. "name": "metadata-test2",
  6. "schemaspace": "metadata-tests",
  7. "schemaspace_id": "8182fc28-899a-4521-8342-1a0e218c3a4d",
  8. "metadata_class_name": "elyra.tests.metadata.test_utils.MockMetadataTestRollback",
  9. "properties": {
  10. "schema_name": {
  11. "title": "Schema Name",
  12. "description": "The schema associated with this instance",
  13. "type": "string",
  14. "const": "metadata-test2"
  15. },
  16. "display_name": {
  17. "title": "Display Name",
  18. "description": "The display name of the metadata",
  19. "type": "string",
  20. "minLength": 1
  21. },
  22. "metadata": {
  23. "description": "Additional data specific to this metadata",
  24. "type": "object",
  25. "properties": {
  26. "required_test": {
  27. "title": "Required Test",
  28. "description": "Property used to test required enforcement",
  29. "type": "string",
  30. "minLength": 1
  31. },
  32. "uri_test": {
  33. "title": "URI Test",
  34. "description": "Property used to test uri formatting",
  35. "type": "string",
  36. "format": "uri"
  37. },
  38. "integer_exclusivity_test": {
  39. "title": "Integer Exclusivity Test",
  40. "description": "Property used to test integers with exclusivity restrictions",
  41. "type": "integer",
  42. "exclusiveMinimum": 3,
  43. "exclusiveMaximum": 10
  44. },
  45. "integer_multiple_test": {
  46. "title": "Integer Multiple Test",
  47. "description": "Property used to test integers with multipleOf restrictions",
  48. "type": "integer",
  49. "multipleOf": 7
  50. },
  51. "number_range_test": {
  52. "title": "Number Range Test",
  53. "description": "Property used to test numbers with range",
  54. "type": "number",
  55. "minimum": 3,
  56. "maximum": 10
  57. },
  58. "number_default_test": {
  59. "title": "Number Default Test",
  60. "description": "Property used to test numbers with defaults",
  61. "type": "number",
  62. "default": 42
  63. },
  64. "const_test": {
  65. "title": "Const Test",
  66. "description": "Property used to test properties with const",
  67. "type": "number",
  68. "const": 3.14
  69. },
  70. "string_length_test": {
  71. "title": "String Length Test",
  72. "description": "Property used to test strings with length restrictions",
  73. "type": "string",
  74. "minLength": 3,
  75. "maxLength": 10
  76. },
  77. "string_pattern_test": {
  78. "title": "String Pattern Test",
  79. "description": "Property used to test strings with pattern restrictions",
  80. "type": "string",
  81. "pattern": "^[a-z0-9][a-z0-9-.]*[a-z0-9]$"
  82. },
  83. "enum_test": {
  84. "title": "Enum Test",
  85. "description": "Property used to test properties with enums",
  86. "type": "string",
  87. "enum": ["elyra", "rocks"],
  88. "uihints": {
  89. "ui:field": "dropdown",
  90. "default_choices": ["elyra"]
  91. }
  92. },
  93. "array_test": {
  94. "title": "Array Test",
  95. "description": "Property used to test array with item restrictions",
  96. "type": "array",
  97. "minItems": 3,
  98. "maxItems": 10,
  99. "uniqueItems": true,
  100. "uihints": {
  101. "ui:field": "code"
  102. }
  103. },
  104. "object_test": {
  105. "title": "Object Test",
  106. "description": "Property used to test object elements with properties restrictions",
  107. "type": "object",
  108. "minProperties": 3,
  109. "maxProperties": 10
  110. },
  111. "boolean_test": {
  112. "title": "Boolean Test",
  113. "description": "Property used to test boolean values",
  114. "type": "boolean"
  115. },
  116. "null_test": {
  117. "title": "Null Test",
  118. "description": "Property used to test null types",
  119. "type": "null"
  120. }
  121. },
  122. "required": ["required_test"]
  123. }
  124. },
  125. "required": ["schema_name", "display_name", "metadata"]
  126. }