Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check explicitly for invalid model types #35

Merged
merged 1 commit into from
Jul 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
842 changes: 790 additions & 52 deletions jsonization/jsonization.go

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assetAdministrationShells[0].modelType: Expected the model type 'AssetAdministrationShell', but got aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
conceptDescriptions[0].modelType: Expected the model type 'ConceptDescription', but got aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assetAdministrationShells[0].embeddedDataSpecifications[0].dataSpecificationContent: Unexpected model type for IDataSpecificationContent: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].modelType: Expected the model type 'Submodel', but got aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assetAdministrationShells[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
conceptDescriptions[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
assetAdministrationShells[0].embeddedDataSpecifications[0].dataSpecificationContent: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
submodels[0].submodelElements[0]: The required property modelType is missing
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"first": {
"keys": [
{
"type": "GlobalReference",
"value": "urn:another-company01:f390f801"
}
],
"type": "ExternalReference"
},
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType",
"second": {
"keys": [
{
"type": "GlobalReference",
"value": "urn:an-example05:b7bf2725"
}
],
"type": "ExternalReference"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"assetAdministrationShells": [
{
"assetInformation": {
"assetKind": "NotApplicable",
"globalAssetId": "something_eea66fa1"
},
"id": "something_142922d6",
"modelType": "aCompletelyInvalidModelType"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"direction": "output",
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType",
"observed": {
"keys": [
{
"type": "Submodel",
"value": "urn:another-example11:3679ef43"
}
],
"type": "ModelReference"
},
"state": "off"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"contentType": "'VbrwFrYTU/fO7NnLxq \t; \tMX.`10dB732`X5yRy=I56Ov9Us\t ;\t\t pRb~~hdw_C%2Zf=\"\"\t\t\t \t\t\t \t \t\t \t ; h=1t",
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"conceptDescriptions": [
{
"id": "something_8ccad77f",
"modelType": "aCompletelyInvalidModelType"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"assetAdministrationShells": [
{
"assetInformation": {
"assetKind": "NotApplicable",
"globalAssetId": "something_eea66fa1"
},
"embeddedDataSpecifications": [
{
"dataSpecificationContent": {
"modelType": "aCompletelyInvalidModelType",
"preferredName": [
{
"language": "i-enochian",
"text": "something_84b0b440"
},
{
"language": "en-GB",
"text": "Something random in English 5b15c20d"
}
],
"value": "something_13759f45"
}
}
],
"id": "something_142922d6",
"modelType": "AssetAdministrationShell"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"entityType": "CoManagedEntity",
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"contentType": "'VbrwFrYTU/fO7NnLxq \t; \tMX.`10dB732`X5yRy=I56Ov9Us\t ;\t\t pRb~~hdw_C%2Zf=\"\"\t\t\t \t\t\t \t \t\t \t ; h=1t",
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType",
"valueType": "xs:decimal"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType",
"valueType": "xs:decimal"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType"
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"first": {
"keys": [
{
"type": "GlobalReference",
"value": "urn:another-company01:f390f801"
}
],
"type": "ExternalReference"
},
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType",
"second": {
"keys": [
{
"type": "GlobalReference",
"value": "urn:an-example05:b7bf2725"
}
],
"type": "ExternalReference"
}
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "aCompletelyInvalidModelType"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"submodels": [
{
"id": "something_48c66017",
"modelType": "Submodel",
"submodelElements": [
{
"idShort": "something3fdd3eb4",
"modelType": "aCompletelyInvalidModelType"
}
]
}
]
}
Loading
Loading