-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1360 from aml-org/W-10881268-allOf-resolution-stage
W-10881268 - Changed tranformer to use allOf and oneOf instead of inh…
- Loading branch information
Showing
23 changed files
with
633 additions
and
158 deletions.
There are no files selected for viewing
410 changes: 410 additions & 0 deletions
410
amf-cli/shared/src/test/resources/semantic-jsonschema/dialects/allOf-complex.jsonld
Large diffs are not rendered by default.
Oops, something went wrong.
71 changes: 71 additions & 0 deletions
71
amf-cli/shared/src/test/resources/semantic-jsonschema/dialects/allOf-complex.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
#%Dialect 1.0 | ||
nodeMappings: | ||
allOf-Complex: | ||
allOf: | ||
- SchemaNode | ||
- SchemaNode_1 | ||
- SchemaNode_5 | ||
- extension_allOf-Complex | ||
extension_allOf-Complex: | ||
mapping: | ||
d: | ||
range: number | ||
mandatory: true | ||
additionalProperties: true | ||
SchemaNode: | ||
mapping: | ||
a: | ||
range: string | ||
mandatory: false | ||
additionalProperties: true | ||
SchemaNode_1: | ||
conditional: | ||
if: SchemaNode_2 | ||
then: SchemaNode_3 | ||
else: SchemaNode_4 | ||
SchemaNode_2: | ||
mapping: | ||
a: | ||
range: any | ||
mandatory: false | ||
enum: | ||
- condition | ||
additionalProperties: true | ||
SchemaNode_3: | ||
mapping: | ||
a: | ||
range: string | ||
propertyTerm: config.sensitive | ||
mandatory: false | ||
additionalProperties: true | ||
SchemaNode_4: | ||
mapping: | ||
a: | ||
range: string | ||
propertyTerm: config.dataweaveExpression | ||
mandatory: false | ||
additionalProperties: true | ||
SchemaNode_5: | ||
oneOf: | ||
- SchemaNode_6 | ||
- SchemaNode_7 | ||
SchemaNode_6: | ||
mapping: | ||
b: | ||
range: integer | ||
mandatory: false | ||
additionalProperties: true | ||
SchemaNode_7: | ||
mapping: | ||
c: | ||
range: boolean | ||
mandatory: false | ||
additionalProperties: true | ||
external: | ||
config: anypoint://vocabulary/policy.yaml# | ||
ns0: http://test.com/vocab# | ||
dialect: amf-json-schema-generated-dialect | ||
version: "1.0" | ||
documents: | ||
root: | ||
encodes: allOf-Complex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
amf-cli/shared/src/test/resources/semantic-jsonschema/dialects/allOf-custom.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#%Dialect 1.0 | ||
nodeMappings: | ||
Child: | ||
extends: | ||
allOf: | ||
- SchemaNode | ||
- extension_Child | ||
extension_Child: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...li/shared/src/test/resources/semantic-jsonschema/dialects/allOf-with-extended-schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#%Dialect 1.0 | ||
nodeMappings: | ||
Child: | ||
extends: | ||
allOf: | ||
- SchemaNode | ||
- SchemaNode_1 | ||
- SchemaNode_2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
amf-cli/shared/src/test/resources/semantic-jsonschema/dialects/allOf.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#%Dialect 1.0 | ||
nodeMappings: | ||
Child: | ||
extends: | ||
allOf: | ||
- SchemaNode | ||
- SchemaNode_1 | ||
- SchemaNode_2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...li/shared/src/test/resources/semantic-jsonschema/dialects/extended-if-then-semantics.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
amf-cli/shared/src/test/resources/semantic-jsonschema/dialects/oneOf-custom.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#%Dialect 1.0 | ||
nodeMappings: | ||
Child: | ||
union: | ||
oneOf: | ||
- SchemaNode | ||
- SchemaNode_1 | ||
SchemaNode_1: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...li/shared/src/test/resources/semantic-jsonschema/dialects/oneOf-with-extended-schema.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#%Dialect 1.0 | ||
nodeMappings: | ||
Child: | ||
union: | ||
oneOf: | ||
- SchemaNode | ||
- SchemaNode_1 | ||
- SchemaNode_2 | ||
|
Oops, something went wrong.