@atlaskit/adf-schema 36.10.7 → 36.10.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/next-schema/full-schema.adf.js +1 -1
  3. package/dist/cjs/next-schema/marks/dataConsumer.js +2 -1
  4. package/dist/cjs/next-schema/nodes/blockCard.js +3 -1
  5. package/dist/cjs/next-schema/nodes/bodiedExtension.js +0 -1
  6. package/dist/cjs/next-schema/nodes/extension.js +0 -1
  7. package/dist/cjs/next-schema/nodes/hardBreak.js +1 -0
  8. package/dist/cjs/next-schema/nodes/inlineCard.js +0 -1
  9. package/dist/cjs/next-schema/nodes/inlineExtension.js +0 -1
  10. package/dist/cjs/next-schema/nodes/mediaInline.js +0 -1
  11. package/dist/cjs/next-schema/nodes/mention.js +2 -1
  12. package/dist/cjs/next-schema/nodes/multiBodiedExtension.js +0 -1
  13. package/dist/cjs/next-schema/nodes/tableRow.js +1 -1
  14. package/dist/es2019/next-schema/full-schema.adf.js +2 -2
  15. package/dist/es2019/next-schema/marks/dataConsumer.js +2 -1
  16. package/dist/es2019/next-schema/nodes/blockCard.js +3 -1
  17. package/dist/es2019/next-schema/nodes/bodiedExtension.js +0 -1
  18. package/dist/es2019/next-schema/nodes/extension.js +0 -1
  19. package/dist/es2019/next-schema/nodes/hardBreak.js +1 -0
  20. package/dist/es2019/next-schema/nodes/inlineCard.js +0 -1
  21. package/dist/es2019/next-schema/nodes/inlineExtension.js +0 -1
  22. package/dist/es2019/next-schema/nodes/mediaInline.js +0 -1
  23. package/dist/es2019/next-schema/nodes/mention.js +2 -1
  24. package/dist/es2019/next-schema/nodes/multiBodiedExtension.js +0 -1
  25. package/dist/es2019/next-schema/nodes/tableRow.js +2 -2
  26. package/dist/esm/next-schema/full-schema.adf.js +2 -2
  27. package/dist/esm/next-schema/marks/dataConsumer.js +2 -1
  28. package/dist/esm/next-schema/nodes/blockCard.js +3 -1
  29. package/dist/esm/next-schema/nodes/bodiedExtension.js +0 -1
  30. package/dist/esm/next-schema/nodes/extension.js +0 -1
  31. package/dist/esm/next-schema/nodes/hardBreak.js +1 -0
  32. package/dist/esm/next-schema/nodes/inlineCard.js +0 -1
  33. package/dist/esm/next-schema/nodes/inlineExtension.js +0 -1
  34. package/dist/esm/next-schema/nodes/mediaInline.js +0 -1
  35. package/dist/esm/next-schema/nodes/mention.js +2 -1
  36. package/dist/esm/next-schema/nodes/multiBodiedExtension.js +0 -1
  37. package/dist/esm/next-schema/nodes/tableRow.js +2 -2
  38. package/package.json +2 -2
  39. package/schema-generators/__tests__/unit/jqueries.md +13 -0
  40. package/schema-generators/__tests__/unit/json-full-schema.unit.ts +18 -0
  41. package/schema-generators/pm-full-schema.ts +1 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 36.10.9
4
+
5
+ ### Patch Changes
6
+
7
+ - 7579d7a: Add minItems field to ADF JSON Schema transformer from ADF DSL
8
+
9
+ ## 36.10.8
10
+
11
+ ### Patch Changes
12
+
13
+ - 78e9cf4: Change types to account for parameter and data attributes
14
+
3
15
  ## 36.10.7
4
16
 
5
17
  ### Patch Changes
@@ -10,6 +10,6 @@ var _layoutSection = require("./nodes/layoutSection");
10
10
  var _blockRootOnlyGroup = require("./groups/blockRootOnlyGroup");
11
11
  var doc = (0, _adfSchemaGenerator.adfNode)('doc').define({
12
12
  root: true,
13
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _layoutSection.layoutSection, _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup))]
13
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_blockGroup.blockGroup, _layoutSection.layoutSection, _layoutSection.layoutSection.use('full'), _blockRootOnlyGroup.blockRootOnlyGroup))]
14
14
  });
15
15
  var _default = exports.default = doc;
@@ -11,7 +11,8 @@ var dataConsumer = exports.dataConsumer = (0, _adfSchemaGenerator.adfMark)('data
11
11
  type: 'array',
12
12
  items: {
13
13
  type: 'string'
14
- }
14
+ },
15
+ minItems: 1
15
16
  }
16
17
  }
17
18
  });
@@ -21,10 +21,12 @@ var blockCard = exports.blockCard = (0, _adfSchemaGenerator.adfNode)('blockCard'
21
21
  id: {
22
22
  type: 'string'
23
23
  },
24
+ // Empty parameters object carried over from original JSON Schema.
24
25
  parameters: {},
25
26
  views: {
26
27
  items: {
27
28
  properties: {
29
+ // Empty properties object carried over from original JSON Schema
28
30
  properties: {},
29
31
  type: {
30
32
  type: 'string'
@@ -32,6 +34,7 @@ var blockCard = exports.blockCard = (0, _adfSchemaGenerator.adfNode)('blockCard'
32
34
  },
33
35
  type: 'object'
34
36
  },
37
+ minItems: 1,
35
38
  type: 'array'
36
39
  }
37
40
  }
@@ -52,7 +55,6 @@ var blockCard = exports.blockCard = (0, _adfSchemaGenerator.adfNode)('blockCard'
52
55
  }
53
56
  }, {
54
57
  data: {
55
- type: 'object',
56
58
  optional: true
57
59
  }
58
60
  }]
@@ -26,7 +26,6 @@ var bodiedExtension = exports.bodiedExtension = (0, _adfSchemaGenerator.adfNode)
26
26
  default: ''
27
27
  },
28
28
  parameters: {
29
- type: 'object',
30
29
  optional: true,
31
30
  default: null
32
31
  },
@@ -22,7 +22,6 @@ var extension = exports.extension = (0, _adfSchemaGenerator.adfNode)('extension'
22
22
  default: ''
23
23
  },
24
24
  parameters: {
25
- type: 'object',
26
25
  optional: true,
27
26
  default: null
28
27
  },
@@ -9,6 +9,7 @@ var hardBreak = exports.hardBreak = (0, _adfSchemaGenerator.adfNode)('hardBreak'
9
9
  inline: true,
10
10
  selectable: false,
11
11
  attrs: {
12
+ // Carried over from original JSON Schema as is
12
13
  text: {
13
14
  type: 'enum',
14
15
  values: ['\n'],
@@ -19,7 +19,6 @@ var inlineCard = exports.inlineCard = (0, _adfSchemaGenerator.adfNode)('inlineCa
19
19
  }
20
20
  }, {
21
21
  data: {
22
- type: 'object',
23
22
  optional: true,
24
23
  default: null
25
24
  }
@@ -20,7 +20,6 @@ var inlineExtension = exports.inlineExtension = (0, _adfSchemaGenerator.adfNode)
20
20
  default: ''
21
21
  },
22
22
  parameters: {
23
- type: 'object',
24
23
  optional: true,
25
24
  default: null
26
25
  },
@@ -14,7 +14,6 @@ var mediaInline = exports.mediaInline = (0, _adfSchemaGenerator.adfNode)('mediaI
14
14
  marks: [_link.link, _annotation.annotation, _border.border],
15
15
  attrs: {
16
16
  data: {
17
- type: 'object',
18
17
  optional: true
19
18
  },
20
19
  type: {
@@ -14,7 +14,8 @@ var mention = exports.mention = (0, _adfSchemaGenerator.adfNode)('mention').defi
14
14
  default: ''
15
15
  },
16
16
  localId: {
17
- type: 'string'
17
+ type: 'string',
18
+ optional: true
18
19
  },
19
20
  text: {
20
21
  type: 'string',
@@ -21,7 +21,6 @@ var multiBodiedExtension = exports.multiBodiedExtension = (0, _adfSchemaGenerato
21
21
  default: ''
22
22
  },
23
23
  parameters: {
24
- type: 'object',
25
24
  optional: true,
26
25
  default: null
27
26
  },
@@ -9,5 +9,5 @@ var _tableCell = require("./tableCell");
9
9
  var _tableHeader = require("./tableHeader");
10
10
  var tableRow = exports.tableRow = (0, _adfSchemaGenerator.adfNode)('tableRow').define({
11
11
  selectable: false,
12
- content: [(0, _adfSchemaGenerator.$onePlus)((0, _adfSchemaGenerator.$or)(_tableCell.tableCell, _tableHeader.tableHeader))]
12
+ content: [(0, _adfSchemaGenerator.$zeroPlus)((0, _adfSchemaGenerator.$or)(_tableCell.tableCell, _tableHeader.tableHeader))]
13
13
  });
@@ -1,9 +1,9 @@
1
- import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
1
+ import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
2
  import { blockGroup } from './groups/blockGroup';
3
3
  import { layoutSection } from './nodes/layoutSection';
4
4
  import { blockRootOnlyGroup } from './groups/blockRootOnlyGroup';
5
5
  const doc = adfNode('doc').define({
6
6
  root: true,
7
- content: [$onePlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup))]
7
+ content: [$zeroPlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup))]
8
8
  });
9
9
  export default doc;
@@ -5,7 +5,8 @@ export const dataConsumer = adfMark('dataConsumer').define({
5
5
  type: 'array',
6
6
  items: {
7
7
  type: 'string'
8
- }
8
+ },
9
+ minItems: 1
9
10
  }
10
11
  }
11
12
  });
@@ -15,10 +15,12 @@ export const blockCard = adfNode('blockCard').define({
15
15
  id: {
16
16
  type: 'string'
17
17
  },
18
+ // Empty parameters object carried over from original JSON Schema.
18
19
  parameters: {},
19
20
  views: {
20
21
  items: {
21
22
  properties: {
23
+ // Empty properties object carried over from original JSON Schema
22
24
  properties: {},
23
25
  type: {
24
26
  type: 'string'
@@ -26,6 +28,7 @@ export const blockCard = adfNode('blockCard').define({
26
28
  },
27
29
  type: 'object'
28
30
  },
31
+ minItems: 1,
29
32
  type: 'array'
30
33
  }
31
34
  }
@@ -46,7 +49,6 @@ export const blockCard = adfNode('blockCard').define({
46
49
  }
47
50
  }, {
48
51
  data: {
49
- type: 'object',
50
52
  optional: true
51
53
  }
52
54
  }]
@@ -18,7 +18,6 @@ export const bodiedExtension = adfNode('bodiedExtension').define({
18
18
  default: ''
19
19
  },
20
20
  parameters: {
21
- type: 'object',
22
21
  optional: true,
23
22
  default: null
24
23
  },
@@ -16,7 +16,6 @@ export const extension = adfNode('extension').define({
16
16
  default: ''
17
17
  },
18
18
  parameters: {
19
- type: 'object',
20
19
  optional: true,
21
20
  default: null
22
21
  },
@@ -3,6 +3,7 @@ export const hardBreak = adfNode('hardBreak').define({
3
3
  inline: true,
4
4
  selectable: false,
5
5
  attrs: {
6
+ // Carried over from original JSON Schema as is
6
7
  text: {
7
8
  type: 'enum',
8
9
  values: ['\n'],
@@ -13,7 +13,6 @@ export const inlineCard = adfNode('inlineCard').define({
13
13
  }
14
14
  }, {
15
15
  data: {
16
- type: 'object',
17
16
  optional: true,
18
17
  default: null
19
18
  }
@@ -14,7 +14,6 @@ export const inlineExtension = adfNode('inlineExtension').define({
14
14
  default: ''
15
15
  },
16
16
  parameters: {
17
- type: 'object',
18
17
  optional: true,
19
18
  default: null
20
19
  },
@@ -8,7 +8,6 @@ export const mediaInline = adfNode('mediaInline').define({
8
8
  marks: [link, annotation, border],
9
9
  attrs: {
10
10
  data: {
11
- type: 'object',
12
11
  optional: true
13
12
  },
14
13
  type: {
@@ -8,7 +8,8 @@ export const mention = adfNode('mention').define({
8
8
  default: ''
9
9
  },
10
10
  localId: {
11
- type: 'string'
11
+ type: 'string',
12
+ optional: true
12
13
  },
13
14
  text: {
14
15
  type: 'string',
@@ -15,7 +15,6 @@ export const multiBodiedExtension = adfNode('multiBodiedExtension').define({
15
15
  default: ''
16
16
  },
17
17
  parameters: {
18
- type: 'object',
19
18
  optional: true,
20
19
  default: null
21
20
  },
@@ -1,7 +1,7 @@
1
- import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
1
+ import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
2
  import { tableCell } from './tableCell';
3
3
  import { tableHeader } from './tableHeader';
4
4
  export const tableRow = adfNode('tableRow').define({
5
5
  selectable: false,
6
- content: [$onePlus($or(tableCell, tableHeader))]
6
+ content: [$zeroPlus($or(tableCell, tableHeader))]
7
7
  });
@@ -1,9 +1,9 @@
1
- import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
1
+ import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
2
  import { blockGroup } from './groups/blockGroup';
3
3
  import { layoutSection } from './nodes/layoutSection';
4
4
  import { blockRootOnlyGroup } from './groups/blockRootOnlyGroup';
5
5
  var doc = adfNode('doc').define({
6
6
  root: true,
7
- content: [$onePlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup))]
7
+ content: [$zeroPlus($or(blockGroup, layoutSection, layoutSection.use('full'), blockRootOnlyGroup))]
8
8
  });
9
9
  export default doc;
@@ -5,7 +5,8 @@ export var dataConsumer = adfMark('dataConsumer').define({
5
5
  type: 'array',
6
6
  items: {
7
7
  type: 'string'
8
- }
8
+ },
9
+ minItems: 1
9
10
  }
10
11
  }
11
12
  });
@@ -15,10 +15,12 @@ export var blockCard = adfNode('blockCard').define({
15
15
  id: {
16
16
  type: 'string'
17
17
  },
18
+ // Empty parameters object carried over from original JSON Schema.
18
19
  parameters: {},
19
20
  views: {
20
21
  items: {
21
22
  properties: {
23
+ // Empty properties object carried over from original JSON Schema
22
24
  properties: {},
23
25
  type: {
24
26
  type: 'string'
@@ -26,6 +28,7 @@ export var blockCard = adfNode('blockCard').define({
26
28
  },
27
29
  type: 'object'
28
30
  },
31
+ minItems: 1,
29
32
  type: 'array'
30
33
  }
31
34
  }
@@ -46,7 +49,6 @@ export var blockCard = adfNode('blockCard').define({
46
49
  }
47
50
  }, {
48
51
  data: {
49
- type: 'object',
50
52
  optional: true
51
53
  }
52
54
  }]
@@ -19,7 +19,6 @@ export var bodiedExtension = adfNode('bodiedExtension').define({
19
19
  default: ''
20
20
  },
21
21
  parameters: {
22
- type: 'object',
23
22
  optional: true,
24
23
  default: null
25
24
  },
@@ -16,7 +16,6 @@ export var extension = adfNode('extension').define({
16
16
  default: ''
17
17
  },
18
18
  parameters: {
19
- type: 'object',
20
19
  optional: true,
21
20
  default: null
22
21
  },
@@ -3,6 +3,7 @@ export var hardBreak = adfNode('hardBreak').define({
3
3
  inline: true,
4
4
  selectable: false,
5
5
  attrs: {
6
+ // Carried over from original JSON Schema as is
6
7
  text: {
7
8
  type: 'enum',
8
9
  values: ['\n'],
@@ -13,7 +13,6 @@ export var inlineCard = adfNode('inlineCard').define({
13
13
  }
14
14
  }, {
15
15
  data: {
16
- type: 'object',
17
16
  optional: true,
18
17
  default: null
19
18
  }
@@ -14,7 +14,6 @@ export var inlineExtension = adfNode('inlineExtension').define({
14
14
  default: ''
15
15
  },
16
16
  parameters: {
17
- type: 'object',
18
17
  optional: true,
19
18
  default: null
20
19
  },
@@ -8,7 +8,6 @@ export var mediaInline = adfNode('mediaInline').define({
8
8
  marks: [link, annotation, border],
9
9
  attrs: {
10
10
  data: {
11
- type: 'object',
12
11
  optional: true
13
12
  },
14
13
  type: {
@@ -8,7 +8,8 @@ export var mention = adfNode('mention').define({
8
8
  default: ''
9
9
  },
10
10
  localId: {
11
- type: 'string'
11
+ type: 'string',
12
+ optional: true
12
13
  },
13
14
  text: {
14
15
  type: 'string',
@@ -15,7 +15,6 @@ export var multiBodiedExtension = adfNode('multiBodiedExtension').define({
15
15
  default: ''
16
16
  },
17
17
  parameters: {
18
- type: 'object',
19
18
  optional: true,
20
19
  default: null
21
20
  },
@@ -1,7 +1,7 @@
1
- import { $onePlus, $or, adfNode } from '@atlaskit/adf-schema-generator';
1
+ import { $or, $zeroPlus, adfNode } from '@atlaskit/adf-schema-generator';
2
2
  import { tableCell } from './tableCell';
3
3
  import { tableHeader } from './tableHeader';
4
4
  export var tableRow = adfNode('tableRow').define({
5
5
  selectable: false,
6
- content: [$onePlus($or(tableCell, tableHeader))]
6
+ content: [$zeroPlus($or(tableCell, tableHeader))]
7
7
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "36.10.7",
3
+ "version": "36.10.9",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -45,7 +45,7 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@atlassian/adf-schema-json": "^1.15.0",
48
- "@atlaskit/adf-schema-generator": "^1.7.10",
48
+ "@atlaskit/adf-schema-generator": "^1.8.2",
49
49
  "@babel/cli": "^7.22.9",
50
50
  "@babel/core": "^7.22.9",
51
51
  "@babel/plugin-proposal-class-properties": "^7.18.6",
@@ -114,3 +114,16 @@ A number of nodes have `marks` defined, yet the array is empty. Assuming this is
114
114
  .block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
115
115
  .bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks, .extension_node.properties.marks, .paragraph_node.properties.marks) else . end)' | pbcopy
116
116
  ```
117
+
118
+ Base level content objects (not nodes) are deleted. `inline` is also deleted, as it is a content object for paragraph.
119
+
120
+ All fields of content except for type and items have been deleted as well.
121
+
122
+ A number of nodes have `marks` defined, yet the array is empty. Assuming this is redundant, I've removed them.
123
+
124
+ ```sh
125
+ cat packages/adf-schema/json-schema/v1/full.json | jq 'walk(if type == "object" then del(
126
+ .version, .required, .additionalProperties, .allOf, .content.items.anyOf?, .content.items."$ref"?, .content.items[]?, .content."$ref",
127
+ .block_content, .nestedExpand_content, .non_nestable_block_content, .table_cell_content, .inline_node,
128
+ .bodiedExtension_node.properties.marks, .codeBlock_node.properties.marks, .expand_node.properties.marks, .heading_node.properties.marks, .inlineExtension_node.properties.marks, .text_node.properties.marks, .extension_node.properties.marks, .paragraph_node.properties.marks) else . end)' | pbcopy
129
+ ```
@@ -230,6 +230,7 @@ const jsonWithTypes = {
230
230
  items: {
231
231
  type: 'string',
232
232
  },
233
+ minItems: 1,
233
234
  },
234
235
  },
235
236
  },
@@ -455,6 +456,7 @@ const jsonWithTypes = {
455
456
  properties: {},
456
457
  },
457
458
  },
459
+ minItems: 1,
458
460
  },
459
461
  },
460
462
  },
@@ -699,6 +701,7 @@ const jsonWithTypes = {
699
701
  content: {
700
702
  type: 'array',
701
703
  items: {},
704
+ minItems: 0,
702
705
  },
703
706
  },
704
707
  },
@@ -801,6 +804,7 @@ const jsonWithTypes = {
801
804
  content: {
802
805
  type: 'array',
803
806
  items: [],
807
+ minItems: 1,
804
808
  },
805
809
  attrs: {
806
810
  type: 'object',
@@ -821,6 +825,7 @@ const jsonWithTypes = {
821
825
  content: {
822
826
  type: 'array',
823
827
  items: [],
828
+ minItems: 1,
824
829
  },
825
830
  },
826
831
  },
@@ -833,6 +838,7 @@ const jsonWithTypes = {
833
838
  content: {
834
839
  type: 'array',
835
840
  items: {},
841
+ minItems: 1,
836
842
  },
837
843
  },
838
844
  },
@@ -845,6 +851,7 @@ const jsonWithTypes = {
845
851
  content: {
846
852
  type: 'array',
847
853
  items: {},
854
+ minItems: 1,
848
855
  },
849
856
  attrs: {
850
857
  type: 'object',
@@ -891,6 +898,7 @@ const jsonWithTypes = {
891
898
  content: {
892
899
  type: 'array',
893
900
  items: {},
901
+ minItems: 1,
894
902
  },
895
903
  },
896
904
  },
@@ -926,6 +934,7 @@ const jsonWithTypes = {
926
934
  content: {
927
935
  type: 'array',
928
936
  items: {},
937
+ minItems: 1,
929
938
  },
930
939
  attrs: {
931
940
  type: 'object',
@@ -982,6 +991,7 @@ const jsonWithTypes = {
982
991
  content: {
983
992
  type: 'array',
984
993
  items: {},
994
+ minItems: 1,
985
995
  },
986
996
  },
987
997
  },
@@ -994,6 +1004,7 @@ const jsonWithTypes = {
994
1004
  content: {
995
1005
  type: 'array',
996
1006
  items: {},
1007
+ minItems: 1,
997
1008
  },
998
1009
  },
999
1010
  },
@@ -1123,6 +1134,7 @@ const jsonWithTypes = {
1123
1134
  content: {
1124
1135
  type: 'array',
1125
1136
  items: {},
1137
+ minItems: 1,
1126
1138
  },
1127
1139
  marks: {
1128
1140
  type: 'array',
@@ -1219,6 +1231,7 @@ const jsonWithTypes = {
1219
1231
  content: {
1220
1232
  type: 'array',
1221
1233
  items: {},
1234
+ minItems: 1,
1222
1235
  },
1223
1236
  },
1224
1237
  },
@@ -1257,6 +1270,7 @@ const jsonWithTypes = {
1257
1270
  content: {
1258
1271
  type: 'array',
1259
1272
  items: {},
1273
+ minItems: 1,
1260
1274
  },
1261
1275
  },
1262
1276
  },
@@ -1280,6 +1294,7 @@ const jsonWithTypes = {
1280
1294
  content: {
1281
1295
  type: 'array',
1282
1296
  items: {},
1297
+ minItems: 1,
1283
1298
  },
1284
1299
  },
1285
1300
  },
@@ -1325,12 +1340,15 @@ jsonWithTypes.definitions.heading_node.properties.content = {
1325
1340
  jsonWithTypes.definitions.nestedExpand_node.properties.content = {
1326
1341
  type: 'array',
1327
1342
  items: {},
1343
+ minItems: 1,
1328
1344
  };
1329
1345
  jsonWithTypes.definitions.table_cell_node.properties.content = {
1330
1346
  type: 'array',
1331
1347
  items: {},
1348
+ minItems: 1,
1332
1349
  };
1333
1350
  jsonWithTypes.definitions.table_header_node.properties.content = {
1334
1351
  type: 'array',
1335
1352
  items: {},
1353
+ minItems: 1,
1336
1354
  };
@@ -1,6 +1,5 @@
1
- import { adfToPm } from '@atlaskit/adf-schema-generator';
1
+ import { adfToPm, writeToFile } from '@atlaskit/adf-schema-generator';
2
2
  import adfNode from 'src/next-schema/full-schema.adf';
3
- import { writeToFile } from '../../adf-schema-generator/src/transforms/codeGenHelpers';
4
3
 
5
4
  function main() {
6
5
  const output = adfToPm(adfNode);