@atlaskit/adf-schema-generator
Advanced tools
Comparing version 1.38.3 to 1.38.4
# @atlaskit/adf-schema-generator | ||
## 1.38.3 | ||
## 1.38.4 | ||
### Patch Changes | ||
- 162fff6: Remove exception for uniqueId on codeBlock and allow property on validator and json schema. | ||
- 0ad17eb: Remove DSL inconsistency for code block with text with new no mark text variant - no functionality changes. | ||
Added: `text_with_no_marks` variant |
@@ -50,34 +50,2 @@ "use strict"; | ||
function fixCommonCompatibilityIssues(json) { | ||
// @DSLCompatibilityException: codeblock has a variant pattern instead of a normal node pattern | ||
// This is probably an expanded reference to the inline code node, a variant of text node | ||
// To remove this exception, we must update the JSON Schema to use a reference here instead | ||
json.definitions.codeBlock_node.properties.content.items = { | ||
allOf: [{ | ||
$ref: '#/definitions/text_node' | ||
}, { | ||
type: 'object', | ||
properties: { | ||
marks: { | ||
type: 'array', | ||
maxItems: 0 | ||
} | ||
}, | ||
additionalProperties: true | ||
}] | ||
}; | ||
json.definitions.codeBlock_root_only_node.properties.content.items = { | ||
allOf: [{ | ||
$ref: '#/definitions/text_node' | ||
}, { | ||
type: 'object', | ||
properties: { | ||
marks: { | ||
type: 'array', | ||
maxItems: 0 | ||
} | ||
}, | ||
additionalProperties: true | ||
}] | ||
}; | ||
// Extra properties | ||
@@ -84,0 +52,0 @@ // @DSLCompatibilityException Despite being oneplus, doc has no minItems field |
@@ -29,34 +29,2 @@ import { traverse } from '../../traverse'; | ||
function fixCommonCompatibilityIssues(json) { | ||
// @DSLCompatibilityException: codeblock has a variant pattern instead of a normal node pattern | ||
// This is probably an expanded reference to the inline code node, a variant of text node | ||
// To remove this exception, we must update the JSON Schema to use a reference here instead | ||
json.definitions.codeBlock_node.properties.content.items = { | ||
allOf: [{ | ||
$ref: '#/definitions/text_node' | ||
}, { | ||
type: 'object', | ||
properties: { | ||
marks: { | ||
type: 'array', | ||
maxItems: 0 | ||
} | ||
}, | ||
additionalProperties: true | ||
}] | ||
}; | ||
json.definitions.codeBlock_root_only_node.properties.content.items = { | ||
allOf: [{ | ||
$ref: '#/definitions/text_node' | ||
}, { | ||
type: 'object', | ||
properties: { | ||
marks: { | ||
type: 'array', | ||
maxItems: 0 | ||
} | ||
}, | ||
additionalProperties: true | ||
}] | ||
}; | ||
// Extra properties | ||
@@ -63,0 +31,0 @@ // @DSLCompatibilityException Despite being oneplus, doc has no minItems field |
@@ -42,34 +42,2 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray"; | ||
function fixCommonCompatibilityIssues(json) { | ||
// @DSLCompatibilityException: codeblock has a variant pattern instead of a normal node pattern | ||
// This is probably an expanded reference to the inline code node, a variant of text node | ||
// To remove this exception, we must update the JSON Schema to use a reference here instead | ||
json.definitions.codeBlock_node.properties.content.items = { | ||
allOf: [{ | ||
$ref: '#/definitions/text_node' | ||
}, { | ||
type: 'object', | ||
properties: { | ||
marks: { | ||
type: 'array', | ||
maxItems: 0 | ||
} | ||
}, | ||
additionalProperties: true | ||
}] | ||
}; | ||
json.definitions.codeBlock_root_only_node.properties.content.items = { | ||
allOf: [{ | ||
$ref: '#/definitions/text_node' | ||
}, { | ||
type: 'object', | ||
properties: { | ||
marks: { | ||
type: 'array', | ||
maxItems: 0 | ||
} | ||
}, | ||
additionalProperties: true | ||
}] | ||
}; | ||
// Extra properties | ||
@@ -76,0 +44,0 @@ // @DSLCompatibilityException Despite being oneplus, doc has no minItems field |
{ | ||
"name": "@atlaskit/adf-schema-generator", | ||
"version": "1.38.3", | ||
"version": "1.38.4", | ||
"description": "Generates ADF and PM schemas", | ||
@@ -5,0 +5,0 @@ "repository": "https://bitbucket.org/atlassian/adf-schema", |
@@ -66,40 +66,2 @@ import type { ADFNode } from '../../adfNode'; | ||
function fixCommonCompatibilityIssues(json: JSONSchema4) { | ||
// @DSLCompatibilityException: codeblock has a variant pattern instead of a normal node pattern | ||
// This is probably an expanded reference to the inline code node, a variant of text node | ||
// To remove this exception, we must update the JSON Schema to use a reference here instead | ||
json.definitions.codeBlock_node.properties.content.items = { | ||
allOf: [ | ||
{ | ||
$ref: '#/definitions/text_node', | ||
}, | ||
{ | ||
type: 'object', | ||
properties: { | ||
marks: { | ||
type: 'array', | ||
maxItems: 0, | ||
}, | ||
}, | ||
additionalProperties: true, | ||
}, | ||
], | ||
}; | ||
json.definitions.codeBlock_root_only_node.properties.content.items = { | ||
allOf: [ | ||
{ | ||
$ref: '#/definitions/text_node', | ||
}, | ||
{ | ||
type: 'object', | ||
properties: { | ||
marks: { | ||
type: 'array', | ||
maxItems: 0, | ||
}, | ||
}, | ||
additionalProperties: true, | ||
}, | ||
], | ||
}; | ||
// Extra properties | ||
@@ -106,0 +68,0 @@ // @DSLCompatibilityException Despite being oneplus, doc has no minItems field |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
594395
15677