-
Notifications
You must be signed in to change notification settings - Fork 22
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 #852 from catenax-ng/feat/488-faild-that-should-fail
feat(impl):[#488] Test that shoul pass, but currently is failing because library
- Loading branch information
Showing
4 changed files
with
126 additions
and
11 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
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
103 changes: 103 additions & 0 deletions
103
irs-api/src/test/resources/json-schema/slab-v3.0.0.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,103 @@ | ||
{ | ||
"$schema" : "http://json-schema.org/draft-04/schema", | ||
"description" : "The single-level bill of material represents one sub-level of an assembly and does not include any lower-level subassemblies. The as-built lifecycle references all child items as manufactured by the manufacturer referencing only child items in an as-built lifecycle themselves (e.g. serial parts or batches), unless parts can only be tracked by an part ID (on a type level).\n\nIf it is unclear which item has been built-in into the parent item, all potential parts must be listed. This is the case when, e.g. the same item is supplied by two suppliers and the item is only tracked by a customer part ID during assembly, these items can not be differentiated from each other.\n", | ||
"type" : "object", | ||
"components" : { | ||
"schemas" : { | ||
"urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" : { | ||
"type" : "string", | ||
"description" : "The provided regular expression ensures that the UUID is composed of five groups of characters separated by hyphens, in the form 8-4-4-4-12 for a total of 36 characters (32 hexadecimal characters and 4 hyphens), optionally prefixed by \"urn:uuid:\" to make it an IRI.", | ||
"pattern" : "(^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)|(^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$)" | ||
}, | ||
"urn_samm_io.catenax.single_level_bom_as_built_3.0.0_DateTimeTrait" : { | ||
"type" : "string", | ||
"description" : "Regular Expression to enable UTC and Timezone formats and the possibility to exclude time information.", | ||
"pattern" : "^-?([1-9][0-9]{3,}|0[0-9]{3})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])(T(([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?|(24:00:00(\\.0+)?))(Z|(\\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00))?)?$" | ||
}, | ||
"urn_samm_io.catenax.shared.quantity_2.0.0_QuantityValueCharacteristic" : { | ||
"type" : "number", | ||
"description" : "The quantity value associated with the unit expressed as float." | ||
}, | ||
"urn_samm_io.catenax.shared.quantity_2.0.0_ItemUnitEnumeration" : { | ||
"type" : "string", | ||
"pattern" : "[a-zA-Z]*:[a-zA-Z]+", | ||
"description" : "Enumeration for common item units.", | ||
"enum" : [ "unit:piece", "unit:set", "unit:pair", "unit:page", "unit:cycle", "unit:kilowattHour", "unit:gram", "unit:kilogram", "unit:tonneMetricTon", "unit:tonUsOrShortTonUkorus", "unit:ounceAvoirdupois", "unit:pound", "unit:metre", "unit:centimetre", "unit:kilometre", "unit:inch", "unit:foot", "unit:yard", "unit:squareCentimetre", "unit:squareMetre", "unit:squareInch", "unit:squareFoot", "unit:squareYard", "unit:cubicCentimetre", "unit:cubicMetre", "unit:cubicInch", "unit:cubicFoot", "unit:cubicYard", "unit:litre", "unit:millilitre", "unit:hectolitre", "unit:secondUnitOfTime", "unit:minuteUnitOfTime", "unit:hourUnitOfTime", "unit:day" ] | ||
}, | ||
"urn_samm_io.catenax.shared.quantity_2.0.0_ItemQuantityCharacteristic" : { | ||
"description" : "Characteristic for measurements of an item (mass, count, linear, area, volume, misc).", | ||
"type" : "object", | ||
"properties" : { | ||
"value" : { | ||
"description" : "The quantity value associated with the unit.", | ||
"$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_QuantityValueCharacteristic" | ||
}, | ||
"unit" : { | ||
"description" : "The unit of an item. Common units may be related to mass, count, linear, area, volume or misc.", | ||
"$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_ItemUnitEnumeration" | ||
} | ||
}, | ||
"required" : [ "value", "unit" ] | ||
}, | ||
"urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnlTrait" : { | ||
"type" : "string", | ||
"description" : "The provided regular expression ensures that the BPNL is composed of prefix 'BPNL', 10 digits and two alphanumeric letters.", | ||
"pattern" : "^BPNL[a-zA-Z0-9]{12}$" | ||
}, | ||
"urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Boolean" : { | ||
"type" : "boolean", | ||
"description" : "Represents a boolean value (i.e. a \"flag\")." | ||
}, | ||
"urn_samm_io.catenax.single_level_bom_as_built_3.0.0_ChildData" : { | ||
"description" : "Catena-X ID and meta data of the assembled child item.", | ||
"type" : "object", | ||
"properties" : { | ||
"createdOn" : { | ||
"description" : "Timestamp when the relation between the parent item and the child item was created, e.g. when the serialized child part was assembled into the given part.", | ||
"$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_3.0.0_DateTimeTrait" | ||
}, | ||
"quantity" : { | ||
"description" : "Quantity of which the child item is assembled into the parent item. In general it is '1' for serialized parts.", | ||
"$ref" : "#/components/schemas/urn_samm_io.catenax.shared.quantity_2.0.0_ItemQuantityCharacteristic" | ||
}, | ||
"lastModifiedOn" : { | ||
"description" : "Timestamp when the assembly relationship between parent item and child item was last modified.", | ||
"$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_3.0.0_DateTimeTrait" | ||
}, | ||
"businessPartner" : { | ||
"description" : "The supplier of the given child item.", | ||
"$ref" : "#/components/schemas/urn_samm_io.catenax.shared.business_partner_number_2.0.0_BpnlTrait" | ||
}, | ||
"hasAlternatives" : { | ||
"description" : "Expresses whether the part is built-in or wether it is one of several options. If the value is false, it can be assumed this exact item is built-in. If the value is true, it is unknown wether this or an alternative item is built-in.\nThis is the case when, e.g. the same item is supplied by two suppliers, the item is only tracked by a customer part ID during assembly. Thus, these items can not be differentiated from each other.\n\n", | ||
"$ref" : "#/components/schemas/urn_samm_org.eclipse.esmf.samm_characteristic_2.1.0_Boolean" | ||
}, | ||
"catenaXId" : { | ||
"description" : "The Catena-X ID of the given part (e.g. the component), valid for the Catena-X dataspace.", | ||
"$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" | ||
} | ||
}, | ||
"required" : [ "createdOn", "quantity", "businessPartner", "hasAlternatives", "catenaXId" ] | ||
}, | ||
"urn_samm_io.catenax.single_level_bom_as_built_3.0.0_SetOfChildItemsCharacteristic" : { | ||
"description" : "Set of child items the parent item was assembled by (one structural level down).", | ||
"type" : "array", | ||
"items" : { | ||
"$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_3.0.0_ChildData" | ||
}, | ||
"uniqueItems" : true | ||
} | ||
} | ||
}, | ||
"properties" : { | ||
"catenaXId" : { | ||
"description" : "The Catena-X ID of the given part (e.g. the component), valid for the Catena-X dataspace.", | ||
"$ref" : "#/components/schemas/urn_samm_io.catenax.shared.uuid_2.0.0_UuidV4Trait" | ||
}, | ||
"childItems" : { | ||
"description" : "Set of child items, of which the given parent item was assembled by (one structural level down).", | ||
"$ref" : "#/components/schemas/urn_samm_io.catenax.single_level_bom_as_built_3.0.0_SetOfChildItemsCharacteristic" | ||
} | ||
}, | ||
"required" : [ "catenaXId", "childItems" ] | ||
} |
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