@@ -23597,6 +23597,18 @@ std::pair<
23597
23597
);
23598
23598
}
23599
23599
23600
+ if (!json.contains("dataSpecification")) {
23601
+ return std::make_pair<
23602
+ common::optional<std::shared_ptr<types::IEmbeddedDataSpecification> >,
23603
+ common::optional<DeserializationError>
23604
+ >(
23605
+ common::nullopt,
23606
+ common::make_optional<DeserializationError>(
23607
+ L"The required property dataSpecification is missing"
23608
+ )
23609
+ );
23610
+ }
23611
+
23600
23612
// endregion Check required properties
23601
23613
23602
23614
// region Initialization
@@ -23605,9 +23617,7 @@ std::pair<
23605
23617
23606
23618
common::optional<std::shared_ptr<types::IDataSpecificationContent> > the_data_specification_content;
23607
23619
23608
- common::optional<
23609
- std::shared_ptr<types::IReference>
23610
- > the_data_specification;
23620
+ common::optional<std::shared_ptr<types::IReference> > the_data_specification;
23611
23621
23612
23622
// endregion Initialization
23613
23623
@@ -23641,30 +23651,28 @@ std::pair<
23641
23651
23642
23652
// region De-serialize dataSpecification
23643
23653
23644
- if (json.contains("dataSpecification")) {
23645
- std::tie(
23646
- the_data_specification,
23647
- error
23648
- ) = DeserializeReference(
23649
- json["dataSpecification"],
23650
- additional_properties
23651
- );
23654
+ std::tie(
23655
+ the_data_specification,
23656
+ error
23657
+ ) = DeserializeReference(
23658
+ json["dataSpecification"],
23659
+ additional_properties
23660
+ );
23652
23661
23653
- if (error.has_value()) {
23654
- error->path.segments.emplace_front(
23655
- common::make_unique<PropertySegment>(
23656
- L"dataSpecification"
23657
- )
23658
- );
23662
+ if (error.has_value()) {
23663
+ error->path.segments.emplace_front(
23664
+ common::make_unique<PropertySegment>(
23665
+ L"dataSpecification"
23666
+ )
23667
+ );
23659
23668
23660
- return std::make_pair<
23661
- common::optional<std::shared_ptr<types::IEmbeddedDataSpecification> >,
23662
- common::optional<DeserializationError>
23663
- >(
23664
- common::nullopt,
23665
- std::move(error)
23666
- );
23667
- }
23669
+ return std::make_pair<
23670
+ common::optional<std::shared_ptr<types::IEmbeddedDataSpecification> >,
23671
+ common::optional<DeserializationError>
23672
+ >(
23673
+ common::nullopt,
23674
+ std::move(error)
23675
+ );
23668
23676
}
23669
23677
23670
23678
// endregion De-serialize dataSpecification
@@ -23678,7 +23686,7 @@ std::pair<
23678
23686
// upcast.
23679
23687
new types::EmbeddedDataSpecification(
23680
23688
std::move(*the_data_specification_content),
23681
- std::move(the_data_specification)
23689
+ std::move(* the_data_specification)
23682
23690
)
23683
23691
),
23684
23692
common::nullopt
@@ -36939,40 +36947,33 @@ std::pair<
36939
36947
*json_data_specification_content
36940
36948
);
36941
36949
36942
- const common::optional<
36943
- std::shared_ptr<types::IReference>
36944
- >& maybe_data_specification(
36945
- that.data_specification()
36950
+ common::optional<nlohmann::json> json_data_specification;
36951
+ std::tie(
36952
+ json_data_specification,
36953
+ error
36954
+ ) = SerializeIClass(
36955
+ *that.data_specification()
36946
36956
);
36947
- if (maybe_data_specification.has_value()) {
36948
- common::optional<nlohmann::json> json_data_specification;
36949
- std::tie(
36950
- json_data_specification,
36951
- error
36952
- ) = SerializeIClass(
36953
- **maybe_data_specification
36957
+ if (error.has_value()) {
36958
+ error->path.segments.emplace_front(
36959
+ common::make_unique<iteration::PropertySegment>(
36960
+ iteration::Property::kDataSpecification
36961
+ )
36954
36962
);
36955
- if (error.has_value()) {
36956
- error->path.segments.emplace_front(
36957
- common::make_unique<iteration::PropertySegment>(
36958
- iteration::Property::kDataSpecification
36959
- )
36960
- );
36961
-
36962
- return std::make_pair<
36963
- common::optional<nlohmann::json>,
36964
- common::optional<SerializationError>
36965
- >(
36966
- common::nullopt,
36967
- std::move(error)
36968
- );
36969
- }
36970
36963
36971
- result["dataSpecification"] = std::move(
36972
- *json_data_specification
36964
+ return std::make_pair<
36965
+ common::optional<nlohmann::json>,
36966
+ common::optional<SerializationError>
36967
+ >(
36968
+ common::nullopt,
36969
+ std::move(error)
36973
36970
);
36974
36971
}
36975
36972
36973
+ result["dataSpecification"] = std::move(
36974
+ *json_data_specification
36975
+ );
36976
+
36976
36977
return std::make_pair<
36977
36978
common::optional<nlohmann::json>,
36978
36979
common::optional<SerializationError>
0 commit comments