-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
417dde2
commit 35d558c
Showing
9 changed files
with
1,755 additions
and
0 deletions.
There are no files selected for viewing
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
79 changes: 79 additions & 0 deletions
79
...c/test/resources/io/apicurio/registry/noprofile/maven/stock/FLIBusinessUnitBaseTypes.json
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,79 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "FLIBusinessUnitBaseTypes.json", | ||
"type": "object", | ||
"$defs": { | ||
"buCodeType": { | ||
"type": "string", | ||
"pattern": "(^[0-9A-Z]{3,5})|AP" | ||
}, | ||
"buTypeType": { | ||
"type": "string", | ||
"pattern": "(^[A-Z]{2,3})" | ||
}, | ||
"buNumber":{ | ||
"type": "string", | ||
"pattern": "(^[A-Z]{2,3})" | ||
}, | ||
"BusinessUnitReferenceType": { | ||
"type": "object", | ||
"required": [ | ||
"BusinessUnitCode", | ||
"BusinessUnitType" | ||
], | ||
"properties": { | ||
"BusinessUnitCode": { | ||
"$ref": "#/$defs/buCodeType" | ||
}, | ||
"BusinessUnitType": { | ||
"$ref": "#/$defs/buTypeType" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"BusinessUnitReferenceDuplicateType": { | ||
"type": "object", | ||
"required": [ | ||
"BusinessUnitCode", | ||
"BusinessUnitType" | ||
], | ||
"properties": { | ||
"BusinessUnitCode": { | ||
"$ref": "#/$defs/buCodeType" | ||
}, | ||
"BusinessUnitType": { | ||
"$ref": "#/$defs/buTypeType" | ||
} | ||
}, | ||
"additionalProperties": false | ||
}, | ||
"BusinessUnitAddressReferenceType": { | ||
"type": "object", | ||
"required": [ | ||
"BusinessUnitCode", | ||
"BusinessUnitType", | ||
"BusinessUnitSequence" | ||
], | ||
"properties": { | ||
"BusinessUnitCode": { | ||
"$ref": "#/$defs/buCodeType" | ||
}, | ||
"BusinessUnitType": { | ||
"$ref": "#/$defs/buTypeType" | ||
}, | ||
"BusinessUnitSequence": { | ||
"$ref": "FLIServiceTypes.json#/$defs/positiveInteger4" | ||
} | ||
}, | ||
"additionalProperties": false | ||
} | ||
}, | ||
"anyOf": [ | ||
{ | ||
"$ref": "#/$defs/BusinessUnitReferenceType" | ||
}, | ||
{ | ||
"$ref": "#/$defs/BusinessUnitAddressReferenceType" | ||
} | ||
] | ||
} |
67 changes: 67 additions & 0 deletions
67
app/src/test/resources/io/apicurio/registry/noprofile/maven/stock/FLIItemBaseTypes.json
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,67 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "FLIItemBaseTypes.json", | ||
"$defs": { | ||
"ItemReferenceType": { | ||
"type": "object", | ||
"properties": { | ||
"ItemNumber": { | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 15 | ||
}, | ||
"ItemType": { | ||
"type": "string", | ||
"enum": [ | ||
"ADS", | ||
"ART", | ||
"CCI", | ||
"HM", | ||
"OAD", | ||
"SGR", | ||
"SPR" | ||
] | ||
} | ||
}, | ||
"required": [ | ||
"ItemNumber", | ||
"ItemType" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"ItemSKUType": { | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 20 | ||
}, | ||
"DWPReferenceType": { | ||
"type": "object", | ||
"properties": { | ||
"ItemReference": { | ||
"$ref": "#/$defs/ItemReferenceType" | ||
}, | ||
"ItemSupplierReference": { | ||
"$ref": "FLIBusinessUnitBaseTypes.json#/$defs/BusinessUnitReferenceType" | ||
}, | ||
"DWPNumber": { "type": "integer" }, | ||
"DWPEdition": { "type": "integer" }, | ||
"DWPFromPackagingDate": { | ||
"type": "string", | ||
"format": "date" | ||
} | ||
}, | ||
"required": [ | ||
"ItemReference", | ||
"ItemSupplierReference", | ||
"DWPNumber", | ||
"DWPEdition", | ||
"DWPFromPackagingDate" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"anyOf": [ | ||
{ "$ref": "#/$defs/ItemReferenceType" }, | ||
{ "$ref": "#/$defs/DWPReferenceType" } | ||
] | ||
} |
96 changes: 96 additions & 0 deletions
96
app/src/test/resources/io/apicurio/registry/noprofile/maven/stock/FLIMessageHeader.json
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,96 @@ | ||
{ | ||
"$schema": "https://json-schema.org/draft/2019-09/schema", | ||
"$id": "FLIMessageHeader.json", | ||
"$defs": { | ||
"MsgHeaderType": { | ||
"type": "object", | ||
"properties": { | ||
"MsgName": { | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 36 | ||
}, | ||
"MsgVersNo": { | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 10 | ||
}, | ||
"MsgDateTime": { | ||
"type": "string", | ||
"format": "date-time", | ||
"pattern": "^(.{20})([0-9]{3})[+-]((2[0-3]|[01][0-9])[:]([0-5][0-9]))$" | ||
}, | ||
"MsgReference": { | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 36 | ||
}, | ||
"SendingSystem": { | ||
"type": "string", | ||
"minLength": 1, | ||
"maxLength": 20 | ||
}, | ||
"SendingUnit": { | ||
"type": "object", | ||
"properties": { | ||
"BUCode": { | ||
"type": "string", | ||
"minLength": 3, | ||
"maxLength": 5 | ||
}, | ||
"BUType": { | ||
"type": "string", | ||
"minLength": 2, | ||
"maxLength": 3 | ||
} | ||
}, | ||
"required": [ | ||
"BUCode", | ||
"BUType" | ||
], | ||
"additionalProperties": false | ||
}, | ||
"LogicalRoutingIdentifier": { | ||
"type": "object", | ||
"properties": { | ||
"SourceCode": { | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"SourceType": { | ||
"type": "string", | ||
"minLength": 1 | ||
}, | ||
"SourceLookupType": { | ||
"type": "string", | ||
"minLength": 1 | ||
} | ||
}, | ||
"required": [ | ||
"SourceCode", | ||
"SourceType" | ||
], | ||
"additionalProperties": false | ||
} | ||
}, | ||
"additionalProperties": false, | ||
"required": [ | ||
"MsgName", | ||
"MsgVersNo", | ||
"MsgDateTime", | ||
"MsgReference", | ||
"SendingSystem" | ||
] | ||
} | ||
}, | ||
"type": "object", | ||
"properties": { | ||
"MsgHeader": { | ||
"$ref": "#/$defs/MsgHeaderType" | ||
} | ||
}, | ||
"required": [ | ||
"MsgHeader" | ||
], | ||
"additionalProperties": false | ||
} |
Oops, something went wrong.