Add user dynamic array field support
[deliverable/barectf.git] / barectf / schemas / config / 2 / field-type.yaml
index d34e558963b89ef5403e6e645c52ae6135ab9aa0..2df28850f82aaa22e4c3a4a2e15d40bc43c51cfe 100644 (file)
@@ -198,20 +198,25 @@ definitions:
     required:
       - class
     additionalProperties: false
-  static-array-ft-class-prop:
+  array-ft-class-prop:
     type: string
     const: array
-  static-array-ft:
+  array-ft:
     title: Static array field type object
     type: object
     properties:
       class:
-        $ref: '#/definitions/static-array-ft-class-prop'
+        $ref: '#/definitions/array-ft-class-prop'
       element-type:
         $ref: '#/definitions/ft'
       length:
-        type: integer
-        minimum: 0
+        if:
+          type: integer
+        then:
+          minimum: 0
+        else:
+          type: string
+          const: dynamic
     required:
       - class
       - element-type
@@ -298,9 +303,9 @@ definitions:
       - if:
           properties:
             class:
-              $ref: '#/definitions/static-array-ft-class-prop'
+              $ref: '#/definitions/array-ft-class-prop'
         then:
-          $ref: '#/definitions/static-array-ft'
+          $ref: '#/definitions/array-ft'
       - if:
           properties:
             class:
This page took 0.033474 seconds and 4 git commands to generate.