diff --git a/jsonization/jsonization.go b/jsonization/jsonization.go index fb1adf80..94c9c363 100644 --- a/jsonization/jsonization.go +++ b/jsonization/jsonization.go @@ -1275,6 +1275,8 @@ func assetAdministrationShellFromMapWithoutDispatch( foundID := false foundAssetInformation := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -1634,8 +1636,40 @@ func assetAdministrationShellFromMapWithoutDispatch( theSubmodels = array case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "AssetAdministrationShell" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'AssetAdministrationShell', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -1662,6 +1696,13 @@ func assetAdministrationShellFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewAssetAdministrationShell( theID, theAssetInformation, @@ -2308,6 +2349,8 @@ func submodelFromMapWithoutDispatch( foundID := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -2772,8 +2815,40 @@ func submodelFromMapWithoutDispatch( theSubmodelElements = array case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "Submodel" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'Submodel', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -2793,6 +2868,13 @@ func submodelFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewSubmodel( theID, ) @@ -2928,6 +3010,8 @@ func relationshipElementFromMapWithoutDispatch( foundFirst := false foundSecond := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -3324,8 +3408,40 @@ func relationshipElementFromMapWithoutDispatch( foundSecond = true case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "RelationshipElement" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'RelationshipElement', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -3352,6 +3468,13 @@ func relationshipElementFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewRelationshipElement( theFirst, theSecond, @@ -3483,6 +3606,8 @@ func submodelElementListFromMapWithoutDispatch( foundTypeValueListElement := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -3964,8 +4089,40 @@ func submodelElementListFromMapWithoutDispatch( theValue = array case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "SubmodelElementList" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'SubmodelElementList', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -3985,6 +4142,13 @@ func submodelElementListFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewSubmodelElementList( theTypeValueListElement, ) @@ -4081,6 +4245,8 @@ func submodelElementCollectionFromMapWithoutDispatch( var theEmbeddedDataSpecifications []aastypes.IEmbeddedDataSpecification var theValue []aastypes.ISubmodelElement + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -4497,8 +4663,40 @@ func submodelElementCollectionFromMapWithoutDispatch( theValue = array case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "SubmodelElementCollection" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'SubmodelElementCollection', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -4511,6 +4709,13 @@ func submodelElementCollectionFromMapWithoutDispatch( } } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewSubmodelElementCollection() result.SetExtensions( theExtensions, @@ -4631,6 +4836,8 @@ func propertyFromMapWithoutDispatch( foundValueType := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -5043,8 +5250,40 @@ func propertyFromMapWithoutDispatch( } case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "Property" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'Property', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -5064,6 +5303,13 @@ func propertyFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewProperty( theValueType, ) @@ -5155,6 +5401,8 @@ func multiLanguagePropertyFromMapWithoutDispatch( var theValue []aastypes.ILangStringTextType var theValueID aastypes.IReference + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -5586,8 +5834,40 @@ func multiLanguagePropertyFromMapWithoutDispatch( } case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "MultiLanguageProperty" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'MultiLanguageProperty', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -5600,6 +5880,13 @@ func multiLanguagePropertyFromMapWithoutDispatch( } } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewMultiLanguageProperty() result.SetExtensions( theExtensions, @@ -5692,6 +5979,8 @@ func rangeFromMapWithoutDispatch( foundValueType := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -6106,8 +6395,40 @@ func rangeFromMapWithoutDispatch( theMax = &parsed case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "Range" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'Range', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -6127,6 +6448,13 @@ func rangeFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewRange( theValueType, ) @@ -6217,6 +6545,8 @@ func referenceElementFromMapWithoutDispatch( var theEmbeddedDataSpecifications []aastypes.IEmbeddedDataSpecification var theValue aastypes.IReference + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -6596,8 +6926,40 @@ func referenceElementFromMapWithoutDispatch( } case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "ReferenceElement" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'ReferenceElement', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -6610,6 +6972,13 @@ func referenceElementFromMapWithoutDispatch( } } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewReferenceElement() result.SetExtensions( theExtensions, @@ -6698,6 +7067,8 @@ func blobFromMapWithoutDispatch( foundContentType := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -7093,8 +7464,40 @@ func blobFromMapWithoutDispatch( foundContentType = true case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "Blob" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'Blob', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -7114,6 +7517,13 @@ func blobFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewBlob( theContentType, ) @@ -7204,6 +7614,8 @@ func fileFromMapWithoutDispatch( foundContentType := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -7592,17 +8004,49 @@ func fileFromMapWithoutDispatch( if deseriaErr, ok := err.(*DeserializationError); ok { deseriaErr.Path.PrependName( &aasreporting.NameSegment{ - Name: "contentType", + Name: "contentType", + }, + ) + } + return + } + foundContentType = true + + case "modelType": + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", }, ) } return } - foundContentType = true - case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + if modelType != "File" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'File', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -7622,6 +8066,13 @@ func fileFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewFile( theContentType, ) @@ -7714,6 +8165,8 @@ func annotatedRelationshipElementFromMapWithoutDispatch( foundFirst := false foundSecond := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -8162,8 +8615,40 @@ func annotatedRelationshipElementFromMapWithoutDispatch( theAnnotations = array case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "AnnotatedRelationshipElement" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'AnnotatedRelationshipElement', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -8190,6 +8675,13 @@ func annotatedRelationshipElementFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewAnnotatedRelationshipElement( theFirst, theSecond, @@ -8283,6 +8775,8 @@ func entityFromMapWithoutDispatch( foundEntityType := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -8784,8 +9278,40 @@ func entityFromMapWithoutDispatch( theSpecificAssetIDs = array case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "Entity" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'Entity', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -8805,6 +9331,13 @@ func entityFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewEntity( theEntityType, ) @@ -9295,6 +9828,8 @@ func basicEventElementFromMapWithoutDispatch( foundDirection := false foundState := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -9790,8 +10325,40 @@ func basicEventElementFromMapWithoutDispatch( theMaxInterval = &parsed case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "BasicEventElement" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'BasicEventElement', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -9825,6 +10392,13 @@ func basicEventElementFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewBasicEventElement( theObserved, theDirection, @@ -9928,6 +10502,8 @@ func operationFromMapWithoutDispatch( var theOutputVariables []aastypes.IOperationVariable var theInoutputVariables []aastypes.IOperationVariable + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -10448,8 +11024,40 @@ func operationFromMapWithoutDispatch( theInoutputVariables = array case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "Operation" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'Operation', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -10462,6 +11070,13 @@ func operationFromMapWithoutDispatch( } } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewOperation() result.SetExtensions( theExtensions, @@ -10638,6 +11253,8 @@ func capabilityFromMapWithoutDispatch( var theQualifiers []aastypes.IQualifier var theEmbeddedDataSpecifications []aastypes.IEmbeddedDataSpecification + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -11002,8 +11619,40 @@ func capabilityFromMapWithoutDispatch( theEmbeddedDataSpecifications = array case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "Capability" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'Capability', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -11016,6 +11665,13 @@ func capabilityFromMapWithoutDispatch( } } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewCapability() result.SetExtensions( theExtensions, @@ -11099,6 +11755,8 @@ func conceptDescriptionFromMapWithoutDispatch( foundID := false + var foundModelType bool + for k, v := range m { switch k { case "extensions": @@ -11427,8 +12085,40 @@ func conceptDescriptionFromMapWithoutDispatch( theIsCaseOf = array case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "ConceptDescription" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'ConceptDescription', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -11448,6 +12138,13 @@ func conceptDescriptionFromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewConceptDescription( theID, ) @@ -13325,6 +14022,8 @@ func dataSpecificationIEC61360FromMapWithoutDispatch( foundPreferredName := false + var foundModelType bool + for k, v := range m { switch k { case "preferredName": @@ -13632,8 +14331,40 @@ func dataSpecificationIEC61360FromMapWithoutDispatch( } case "modelType": - // We ignore the model type as we intentionally dispatched - // to this function. + var modelType string + modelType, err = stringFromJsonable( + v, + ) + if err != nil { + if deseriaErr, ok := err.(*DeserializationError); ok { + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + } + return + } + + if modelType != "DataSpecificationIec61360" { + deseriaErr := newDeserializationError( + fmt.Sprintf( + "Expected the model type 'DataSpecificationIec61360', but got %v", + v, + ), + ) + + deseriaErr.Path.PrependName( + &aasreporting.NameSegment{ + Name: "modelType", + }, + ) + + err = deseriaErr + return + } + + foundModelType = true default: err = newDeserializationError( @@ -13653,6 +14384,13 @@ func dataSpecificationIEC61360FromMapWithoutDispatch( return } + if !foundModelType { + err = newDeserializationError( + "The required property modelType is missing", + ) + return + } + result = aastypes.NewDataSpecificationIEC61360( thePreferredName, ) @@ -13706,7 +14444,7 @@ func hasSemanticsFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -13787,7 +14525,7 @@ func hasExtensionsFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -13866,7 +14604,7 @@ func referableFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -13945,7 +14683,7 @@ func identifiableFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -13996,7 +14734,7 @@ func hasKindFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -14043,7 +14781,7 @@ func hasDataSpecificationFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -14124,7 +14862,7 @@ func qualifiableFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -14199,7 +14937,7 @@ func submodelElementFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -14272,7 +15010,7 @@ func relationshipElementFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -14321,7 +15059,7 @@ func dataElementFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -14378,7 +15116,7 @@ func eventElementFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -14425,7 +15163,7 @@ func abstractLangStringFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } @@ -14480,7 +15218,7 @@ func dataSpecificationContentFromMap( modelTypeAny, ok = m["modelType"] if !ok { err = newDeserializationError( - "Expected the property modelType, but got none", + "The required property modelType is missing", ) return } diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AnnotatedRelationshipElement/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AnnotatedRelationshipElement/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AnnotatedRelationshipElement/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AssetAdministrationShell/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AssetAdministrationShell/invalidModelType.json.error new file mode 100644 index 00000000..1d7eb4ff --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AssetAdministrationShell/invalidModelType.json.error @@ -0,0 +1 @@ +assetAdministrationShells[0].modelType: Expected the model type 'AssetAdministrationShell', but got aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/BasicEventElement/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/BasicEventElement/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/BasicEventElement/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Blob/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Blob/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Blob/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Capability/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Capability/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Capability/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ConceptDescription/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ConceptDescription/invalidModelType.json.error new file mode 100644 index 00000000..6cbd2024 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ConceptDescription/invalidModelType.json.error @@ -0,0 +1 @@ +conceptDescriptions[0].modelType: Expected the model type 'ConceptDescription', but got aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/DataSpecificationIec61360/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/DataSpecificationIec61360/invalidModelType.json.error new file mode 100644 index 00000000..7aa0b10e --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/DataSpecificationIec61360/invalidModelType.json.error @@ -0,0 +1 @@ +assetAdministrationShells[0].embeddedDataSpecifications[0].dataSpecificationContent: Unexpected model type for IDataSpecificationContent: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Entity/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Entity/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Entity/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/File/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/File/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/File/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/MultiLanguageProperty/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/MultiLanguageProperty/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/MultiLanguageProperty/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Operation/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Operation/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Operation/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Property/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Property/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Property/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Range/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Range/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Range/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ReferenceElement/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ReferenceElement/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ReferenceElement/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/RelationshipElement/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/RelationshipElement/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/RelationshipElement/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Submodel/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Submodel/invalidModelType.json.error new file mode 100644 index 00000000..5cd215a8 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Submodel/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].modelType: Expected the model type 'Submodel', but got aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementCollection/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementCollection/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementCollection/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementList/invalidModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementList/invalidModelType.json.error new file mode 100644 index 00000000..c06fc088 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementList/invalidModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: Unexpected model type for ISubmodelElement: aCompletelyInvalidModelType diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AnnotatedRelationshipElement/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AnnotatedRelationshipElement/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AnnotatedRelationshipElement/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AssetAdministrationShell/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AssetAdministrationShell/withoutModelType.json.error new file mode 100644 index 00000000..1e00b0f9 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AssetAdministrationShell/withoutModelType.json.error @@ -0,0 +1 @@ +assetAdministrationShells[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/BasicEventElement/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/BasicEventElement/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/BasicEventElement/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Blob/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Blob/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Blob/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Capability/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Capability/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Capability/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ConceptDescription/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ConceptDescription/withoutModelType.json.error new file mode 100644 index 00000000..354f9bf3 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ConceptDescription/withoutModelType.json.error @@ -0,0 +1 @@ +conceptDescriptions[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/DataSpecificationIec61360/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/DataSpecificationIec61360/withoutModelType.json.error new file mode 100644 index 00000000..26568080 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/DataSpecificationIec61360/withoutModelType.json.error @@ -0,0 +1 @@ +assetAdministrationShells[0].embeddedDataSpecifications[0].dataSpecificationContent: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Entity/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Entity/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Entity/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/File/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/File/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/File/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/MultiLanguageProperty/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/MultiLanguageProperty/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/MultiLanguageProperty/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Operation/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Operation/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Operation/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Property/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Property/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Property/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Range/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Range/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Range/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ReferenceElement/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ReferenceElement/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ReferenceElement/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/RelationshipElement/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/RelationshipElement/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/RelationshipElement/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Submodel/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Submodel/withoutModelType.json.error new file mode 100644 index 00000000..f68d1df4 --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Submodel/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementCollection/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementCollection/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementCollection/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementList/withoutModelType.json.error b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementList/withoutModelType.json.error new file mode 100644 index 00000000..2add105f --- /dev/null +++ b/testdata/DeserializationError/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementList/withoutModelType.json.error @@ -0,0 +1 @@ +submodels[0].submodelElements[0]: The required property modelType is missing diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AnnotatedRelationshipElement/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AnnotatedRelationshipElement/invalidModelType.json new file mode 100644 index 00000000..da8ca7d2 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AnnotatedRelationshipElement/invalidModelType.json @@ -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" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AssetAdministrationShell/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AssetAdministrationShell/invalidModelType.json new file mode 100644 index 00000000..58db7718 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/AssetAdministrationShell/invalidModelType.json @@ -0,0 +1,12 @@ +{ + "assetAdministrationShells": [ + { + "assetInformation": { + "assetKind": "NotApplicable", + "globalAssetId": "something_eea66fa1" + }, + "id": "something_142922d6", + "modelType": "aCompletelyInvalidModelType" + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/BasicEventElement/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/BasicEventElement/invalidModelType.json new file mode 100644 index 00000000..8e466891 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/BasicEventElement/invalidModelType.json @@ -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" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Blob/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Blob/invalidModelType.json new file mode 100644 index 00000000..b6b1c34c --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Blob/invalidModelType.json @@ -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" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Capability/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Capability/invalidModelType.json new file mode 100644 index 00000000..ea9d5664 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Capability/invalidModelType.json @@ -0,0 +1,14 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4", + "modelType": "aCompletelyInvalidModelType" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ConceptDescription/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ConceptDescription/invalidModelType.json new file mode 100644 index 00000000..1a182f8a --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ConceptDescription/invalidModelType.json @@ -0,0 +1,8 @@ +{ + "conceptDescriptions": [ + { + "id": "something_8ccad77f", + "modelType": "aCompletelyInvalidModelType" + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/DataSpecificationIec61360/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/DataSpecificationIec61360/invalidModelType.json new file mode 100644 index 00000000..5261cd94 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/DataSpecificationIec61360/invalidModelType.json @@ -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" + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Entity/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Entity/invalidModelType.json new file mode 100644 index 00000000..fbb91894 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Entity/invalidModelType.json @@ -0,0 +1,15 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "entityType": "CoManagedEntity", + "idShort": "something3fdd3eb4", + "modelType": "aCompletelyInvalidModelType" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/File/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/File/invalidModelType.json new file mode 100644 index 00000000..b6b1c34c --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/File/invalidModelType.json @@ -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" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/MultiLanguageProperty/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/MultiLanguageProperty/invalidModelType.json new file mode 100644 index 00000000..ea9d5664 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/MultiLanguageProperty/invalidModelType.json @@ -0,0 +1,14 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4", + "modelType": "aCompletelyInvalidModelType" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Operation/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Operation/invalidModelType.json new file mode 100644 index 00000000..ea9d5664 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Operation/invalidModelType.json @@ -0,0 +1,14 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4", + "modelType": "aCompletelyInvalidModelType" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Property/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Property/invalidModelType.json new file mode 100644 index 00000000..b9a308a1 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Property/invalidModelType.json @@ -0,0 +1,15 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4", + "modelType": "aCompletelyInvalidModelType", + "valueType": "xs:decimal" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Range/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Range/invalidModelType.json new file mode 100644 index 00000000..b9a308a1 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Range/invalidModelType.json @@ -0,0 +1,15 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4", + "modelType": "aCompletelyInvalidModelType", + "valueType": "xs:decimal" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ReferenceElement/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ReferenceElement/invalidModelType.json new file mode 100644 index 00000000..ea9d5664 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/ReferenceElement/invalidModelType.json @@ -0,0 +1,14 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4", + "modelType": "aCompletelyInvalidModelType" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/RelationshipElement/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/RelationshipElement/invalidModelType.json new file mode 100644 index 00000000..da8ca7d2 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/RelationshipElement/invalidModelType.json @@ -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" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Submodel/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Submodel/invalidModelType.json new file mode 100644 index 00000000..f9e80030 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/Submodel/invalidModelType.json @@ -0,0 +1,8 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "aCompletelyInvalidModelType" + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementCollection/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementCollection/invalidModelType.json new file mode 100644 index 00000000..ea9d5664 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementCollection/invalidModelType.json @@ -0,0 +1,14 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4", + "modelType": "aCompletelyInvalidModelType" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementList/invalidModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementList/invalidModelType.json new file mode 100644 index 00000000..52a708c9 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/InvalidModelType/SubmodelElementList/invalidModelType.json @@ -0,0 +1,15 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4", + "modelType": "aCompletelyInvalidModelType", + "typeValueListElement": "Entity" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AnnotatedRelationshipElement/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AnnotatedRelationshipElement/withoutModelType.json new file mode 100644 index 00000000..27380ee0 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AnnotatedRelationshipElement/withoutModelType.json @@ -0,0 +1,31 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "first": { + "keys": [ + { + "type": "GlobalReference", + "value": "urn:another-company01:f390f801" + } + ], + "type": "ExternalReference" + }, + "idShort": "something3fdd3eb4", + "second": { + "keys": [ + { + "type": "GlobalReference", + "value": "urn:an-example05:b7bf2725" + } + ], + "type": "ExternalReference" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AssetAdministrationShell/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AssetAdministrationShell/withoutModelType.json new file mode 100644 index 00000000..06ae9a13 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/AssetAdministrationShell/withoutModelType.json @@ -0,0 +1,11 @@ +{ + "assetAdministrationShells": [ + { + "assetInformation": { + "assetKind": "NotApplicable", + "globalAssetId": "something_eea66fa1" + }, + "id": "something_142922d6" + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/BasicEventElement/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/BasicEventElement/withoutModelType.json new file mode 100644 index 00000000..af94b596 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/BasicEventElement/withoutModelType.json @@ -0,0 +1,24 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "direction": "output", + "idShort": "something3fdd3eb4", + "observed": { + "keys": [ + { + "type": "Submodel", + "value": "urn:another-example11:3679ef43" + } + ], + "type": "ModelReference" + }, + "state": "off" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Blob/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Blob/withoutModelType.json new file mode 100644 index 00000000..0a0cbb26 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Blob/withoutModelType.json @@ -0,0 +1,14 @@ +{ + "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" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Capability/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Capability/withoutModelType.json new file mode 100644 index 00000000..924ac87c --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Capability/withoutModelType.json @@ -0,0 +1,13 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ConceptDescription/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ConceptDescription/withoutModelType.json new file mode 100644 index 00000000..187cf777 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ConceptDescription/withoutModelType.json @@ -0,0 +1,7 @@ +{ + "conceptDescriptions": [ + { + "id": "something_8ccad77f" + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/DataSpecificationIec61360/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/DataSpecificationIec61360/withoutModelType.json new file mode 100644 index 00000000..d778f234 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/DataSpecificationIec61360/withoutModelType.json @@ -0,0 +1,29 @@ +{ + "assetAdministrationShells": [ + { + "assetInformation": { + "assetKind": "NotApplicable", + "globalAssetId": "something_eea66fa1" + }, + "embeddedDataSpecifications": [ + { + "dataSpecificationContent": { + "preferredName": [ + { + "language": "i-enochian", + "text": "something_84b0b440" + }, + { + "language": "en-GB", + "text": "Something random in English 5b15c20d" + } + ], + "value": "something_13759f45" + } + } + ], + "id": "something_142922d6", + "modelType": "AssetAdministrationShell" + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Entity/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Entity/withoutModelType.json new file mode 100644 index 00000000..56eab540 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Entity/withoutModelType.json @@ -0,0 +1,14 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "entityType": "CoManagedEntity", + "idShort": "something3fdd3eb4" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/File/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/File/withoutModelType.json new file mode 100644 index 00000000..0a0cbb26 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/File/withoutModelType.json @@ -0,0 +1,14 @@ +{ + "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" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/MultiLanguageProperty/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/MultiLanguageProperty/withoutModelType.json new file mode 100644 index 00000000..924ac87c --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/MultiLanguageProperty/withoutModelType.json @@ -0,0 +1,13 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Operation/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Operation/withoutModelType.json new file mode 100644 index 00000000..924ac87c --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Operation/withoutModelType.json @@ -0,0 +1,13 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Property/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Property/withoutModelType.json new file mode 100644 index 00000000..b071673f --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Property/withoutModelType.json @@ -0,0 +1,14 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4", + "valueType": "xs:decimal" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Range/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Range/withoutModelType.json new file mode 100644 index 00000000..b071673f --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Range/withoutModelType.json @@ -0,0 +1,14 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4", + "valueType": "xs:decimal" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ReferenceElement/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ReferenceElement/withoutModelType.json new file mode 100644 index 00000000..924ac87c --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/ReferenceElement/withoutModelType.json @@ -0,0 +1,13 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/RelationshipElement/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/RelationshipElement/withoutModelType.json new file mode 100644 index 00000000..27380ee0 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/RelationshipElement/withoutModelType.json @@ -0,0 +1,31 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "first": { + "keys": [ + { + "type": "GlobalReference", + "value": "urn:another-company01:f390f801" + } + ], + "type": "ExternalReference" + }, + "idShort": "something3fdd3eb4", + "second": { + "keys": [ + { + "type": "GlobalReference", + "value": "urn:an-example05:b7bf2725" + } + ], + "type": "ExternalReference" + } + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Submodel/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Submodel/withoutModelType.json new file mode 100644 index 00000000..b4be2818 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/Submodel/withoutModelType.json @@ -0,0 +1,7 @@ +{ + "submodels": [ + { + "id": "something_48c66017" + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementCollection/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementCollection/withoutModelType.json new file mode 100644 index 00000000..924ac87c --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementCollection/withoutModelType.json @@ -0,0 +1,13 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4" + } + ] + } + ] +} \ No newline at end of file diff --git a/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementList/withoutModelType.json b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementList/withoutModelType.json new file mode 100644 index 00000000..993d37c9 --- /dev/null +++ b/testdata/Json/ContainedInEnvironment/Unexpected/Unserializable/MissingModelType/SubmodelElementList/withoutModelType.json @@ -0,0 +1,14 @@ +{ + "submodels": [ + { + "id": "something_48c66017", + "modelType": "Submodel", + "submodelElements": [ + { + "idShort": "something3fdd3eb4", + "typeValueListElement": "Entity" + } + ] + } + ] +} \ No newline at end of file