From ab9ebb50e3df1218558f3419892d032572a8f44b Mon Sep 17 00:00:00 2001 From: Vivek kumar <51886550+vivekkumarq@users.noreply.github.com> Date: Mon, 21 Sep 2026 09:05:47 +0530 Subject: [PATCH 1/6] fix(csharp): throw JsonException from generated converters on invalid JSON (#24820) * fix(csharp): throw JsonException from generated converters on invalid JSON The post-loop validation in generated JsonConverter.Read() threw ArgumentException and ArgumentNullException when a required property was missing or a non-nullable property was null. Both violate the System.Text.Json converter contract. Two consequences. System.Text.Json only enriches a JsonException with the JSON path of the failure, so the path was lost for these errors. And callers that wrap deserialization in catch (JsonException) did not catch them, which surfaces as an unhandled exception rather than a deserialization failure. Throw JsonException from both, naming the property in the message since JsonException carries no parameter name. Read() already documented JsonException as the exception it throws. The ArgumentNullException in WriteProperties is left alone: that one validates an object supplied by the caller during serialization, where an argument exception is the right choice. Fixes #24345 * Update CSharpClientCodegenTest for the new exception type The two assertions that pinned ArgumentException and ArgumentNullException in the generated Read() validation now expect JsonException. The same test already expected JsonException from the in-loop null checks. --- .../generichost/JsonConverter.mustache | 4 +- .../CSharpClientCodegenTest.java | 8 +- .../Org.OpenAPITools/Model/OneOfNullAndRef.cs | 2 +- .../Model/OneOfNullAndRef2.cs | 2 +- .../Model/OneOfNullAndRef3.cs | 2 +- .../src/Org.OpenAPITools/Model/Parent.cs | 2 +- .../Model/ParentWithOneOfProperty.cs | 2 +- .../Model/ParentWithPluralOneOfProperty.cs | 2 +- .../Model/HelloWorldPostRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/IconsDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/Color.cs | 6 +- .../Org.OpenAPITools/Model/NullTypeDirect.cs | 2 +- .../src/Org.OpenAPITools/Model/Shape.cs | 6 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 6 +- .../src/Org.OpenAPITools/Model/Widget.cs | 8 +- .../src/Org.OpenAPITools/Model/TestObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 8 +- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 10 +-- .../src/Org.OpenAPITools/Model/Person.cs | 6 +- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Orange.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../Model/NowGet200Response.cs | 4 +- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 8 +- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 10 +-- .../src/Org.OpenAPITools/Model/Person.cs | 6 +- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Orange.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../Model/NowGet200Response.cs | 4 +- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 8 +- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 10 +-- .../src/Org.OpenAPITools/Model/Person.cs | 6 +- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Orange.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../Model/NowGet200Response.cs | 4 +- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 8 +- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 10 +-- .../src/Org.OpenAPITools/Model/Person.cs | 6 +- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Orange.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../Model/NowGet200Response.cs | 4 +- .../AllOf/src/Org.OpenAPITools/Model/Adult.cs | 8 +- .../AllOf/src/Org.OpenAPITools/Model/Child.cs | 10 +-- .../src/Org.OpenAPITools/Model/Person.cs | 6 +- .../AnyOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../AnyOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Apple.cs | 2 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../OneOf/src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/Orange.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- .../Model/NowGet200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/Activity.cs | 2 +- .../ActivityOutputElementRepresentation.cs | 4 +- .../Model/AdditionalPropertiesClass.cs | 14 +-- .../src/Org.OpenAPITools/Model/Animal.cs | 6 +- .../src/Org.OpenAPITools/Model/ApiResponse.cs | 6 +- .../src/Org.OpenAPITools/Model/Apple.cs | 6 +- .../src/Org.OpenAPITools/Model/AppleReq.cs | 6 +- .../Model/ArrayOfArrayOfNumberOnly.cs | 2 +- .../Model/ArrayOfNumberOnly.cs | 2 +- .../src/Org.OpenAPITools/Model/ArrayTest.cs | 6 +- .../src/Org.OpenAPITools/Model/Banana.cs | 2 +- .../src/Org.OpenAPITools/Model/BananaReq.cs | 6 +- .../src/Org.OpenAPITools/Model/BasquePig.cs | 4 +- .../Org.OpenAPITools/Model/Capitalization.cs | 12 +-- .../src/Org.OpenAPITools/Model/Cat.cs | 8 +- .../src/Org.OpenAPITools/Model/Category.cs | 6 +- .../src/Org.OpenAPITools/Model/ChildCat.cs | 6 +- .../src/Org.OpenAPITools/Model/ClassModel.cs | 2 +- .../Model/ComplexQuadrilateral.cs | 8 +- .../Org.OpenAPITools/Model/CopyActivity.cs | 8 +- .../src/Org.OpenAPITools/Model/DanishPig.cs | 4 +- .../Org.OpenAPITools/Model/DateOnlyClass.cs | 2 +- .../Model/DeprecatedObject.cs | 2 +- .../src/Org.OpenAPITools/Model/Descendant1.cs | 12 +-- .../src/Org.OpenAPITools/Model/Descendant2.cs | 12 +-- .../src/Org.OpenAPITools/Model/Dog.cs | 8 +- .../src/Org.OpenAPITools/Model/Drawing.cs | 4 +- .../src/Org.OpenAPITools/Model/EntityBase.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumArrays.cs | 4 +- .../src/Org.OpenAPITools/Model/EnumTest.cs | 18 ++-- .../Model/EquilateralTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/File.cs | 2 +- .../Model/FileSchemaTestClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Foo.cs | 2 +- .../Model/FooGetDefaultResponse.cs | 2 +- .../src/Org.OpenAPITools/Model/FormatTest.cs | 66 +++++++------- .../src/Org.OpenAPITools/Model/Fruit.cs | 2 +- .../src/Org.OpenAPITools/Model/GmFruit.cs | 2 +- .../Model/GrandparentAnimal.cs | 4 +- .../Org.OpenAPITools/Model/HasOnlyReadOnly.cs | 4 +- .../Model/InjectedVendorExtensionsTest.cs | 12 +-- .../Model/IsoscelesTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/List.cs | 2 +- .../Model/LiteralStringClass.cs | 4 +- .../src/Org.OpenAPITools/Model/Mammal.cs | 4 +- .../src/Org.OpenAPITools/Model/MapTest.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedAnyOf.cs | 2 +- .../src/Org.OpenAPITools/Model/MixedOneOf.cs | 2 +- ...dPropertiesAndAdditionalPropertiesClass.cs | 8 +- .../src/Org.OpenAPITools/Model/MixedSubId.cs | 2 +- .../Model/Model200Response.cs | 4 +- .../src/Org.OpenAPITools/Model/ModelClient.cs | 2 +- .../src/Org.OpenAPITools/Model/Name.cs | 10 +-- ...cationtestGetElementsV1ResponseMPayload.cs | 8 +- .../Org.OpenAPITools/Model/NullableClass.cs | 4 +- .../Org.OpenAPITools/Model/NullableShape.cs | 4 +- .../src/Org.OpenAPITools/Model/NumberOnly.cs | 2 +- .../Model/ObjectWithDeprecatedFields.cs | 8 +- .../src/Org.OpenAPITools/Model/Order.cs | 12 +-- .../Org.OpenAPITools/Model/OuterComposite.cs | 6 +- .../src/Org.OpenAPITools/Model/ParentPet.cs | 4 +- .../src/Org.OpenAPITools/Model/Pet.cs | 16 ++-- .../src/Org.OpenAPITools/Model/Pig.cs | 4 +- .../Org.OpenAPITools/Model/Quadrilateral.cs | 4 +- .../Model/QuadrilateralInterface.cs | 4 +- .../Org.OpenAPITools/Model/ReadOnlyFirst.cs | 4 +- .../Org.OpenAPITools/Model/RequiredClass.cs | 88 +++++++++---------- .../src/Org.OpenAPITools/Model/Result.cs | 6 +- .../src/Org.OpenAPITools/Model/Return.cs | 10 +-- .../Model/RolesReportsHash.cs | 4 +- .../Model/RolesReportsHashRole.cs | 2 +- .../Org.OpenAPITools/Model/ScaleneTriangle.cs | 8 +- .../src/Org.OpenAPITools/Model/Shape.cs | 4 +- .../Org.OpenAPITools/Model/ShapeInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/ShapeOrNull.cs | 4 +- .../Model/SimpleQuadrilateral.cs | 8 +- .../Model/SpecialModelName.cs | 4 +- .../src/Org.OpenAPITools/Model/Tag.cs | 4 +- .../Model/TestCollectionEndingWithWordList.cs | 2 +- .../TestCollectionEndingWithWordListObject.cs | 2 +- .../Org.OpenAPITools/Model/TestDescendants.cs | 8 +- ...lineFreeformAdditionalPropertiesRequest.cs | 2 +- .../src/Org.OpenAPITools/Model/TestResult.cs | 6 +- .../src/Org.OpenAPITools/Model/Triangle.cs | 4 +- .../Model/TriangleInterface.cs | 4 +- .../src/Org.OpenAPITools/Model/User.cs | 18 ++-- .../src/Org.OpenAPITools/Model/Whale.cs | 8 +- .../src/Org.OpenAPITools/Model/Zebra.cs | 6 +- .../Model/ZeroBasedEnumClass.cs | 2 +- 1689 files changed, 5892 insertions(+), 5892 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/JsonConverter.mustache b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/JsonConverter.mustache index 53c8ad62704c..6ffd52b4c9f9 100644 --- a/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/JsonConverter.mustache +++ b/modules/openapi-generator/src/main/resources/csharp/libraries/generichost/JsonConverter.mustache @@ -296,14 +296,14 @@ {{#allVars}} {{#required}} if (!{{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}.IsSet) - throw new ArgumentException("Property is required for class {{classname}}.", nameof({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}})); + throw new JsonException("Property is required for class {{classname}}: {{baseName}}."); {{/required}} {{/allVars}} {{#allVars}} {{^isNullable}} if ({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}.IsSet && {{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}.Value == null) - throw new ArgumentNullException(nameof({{#lambda.camelcase_sanitize_param}}{{name}}{{/lambda.camelcase_sanitize_param}}), "Property is not nullable for class {{classname}}."); + throw new JsonException("Property is not nullable for class {{classname}}: {{baseName}}."); {{/isNullable}} {{/allVars}} diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java index f9de3e8af006..f457707d1336 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/csharpnetcore/CSharpClientCodegenTest.java @@ -120,9 +120,9 @@ public void testGenericHostInnerStringEnumUnknownHandlingPreservesNullBehavior() "if (requiredNotnullableEnumStringValue == null)\n" + " throw new JsonException();", "if (!requiredNullableEnumString.IsSet)\n" + - " throw new ArgumentException(\"Property is required for class RequiredClass.\", nameof(requiredNullableEnumString));", + " throw new JsonException(\"Property is required for class RequiredClass: required_nullable_enum_string.\");", "if (!requiredNotnullableEnumString.IsSet)\n" + - " throw new ArgumentException(\"Property is required for class RequiredClass.\", nameof(requiredNotnullableEnumString));" + " throw new JsonException(\"Property is required for class RequiredClass: required_notnullable_enum_string.\");" ); } @@ -469,9 +469,9 @@ public void testNumericEnumJsonConverterUsesNumericOperations() throws IOExcepti // Required numeric checks distinguish a missing property from a present null. assertThat(modelWithEnumProperties).contains( "if (!requiredInlineIntEnum.IsSet)\n" + - " throw new ArgumentException(\"Property is required for class ModelWithEnumProperties.\", nameof(requiredInlineIntEnum));", + " throw new JsonException(\"Property is required for class ModelWithEnumProperties: requiredInlineIntEnum.\");", "if (requiredInlineIntEnum.IsSet && requiredInlineIntEnum.Value == null)\n" + - " throw new ArgumentNullException(nameof(requiredInlineIntEnum), \"Property is not nullable for class ModelWithEnumProperties.\");" + " throw new JsonException(\"Property is not nullable for class ModelWithEnumProperties: requiredInlineIntEnum.\");" ); // Verify long enum uses int64 reader with validation and actual int64 values diff --git a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef.cs b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef.cs index afc16caa901c..ae8b5c31618b 100644 --- a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef.cs +++ b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef.cs @@ -139,7 +139,7 @@ public override OneOfNullAndRef Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class OneOfNullAndRef."); + throw new JsonException("Property is not nullable for class OneOfNullAndRef: number."); return new OneOfNullAndRef(number); } diff --git a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef2.cs b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef2.cs index b93625d3a510..2cb4cd181707 100644 --- a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef2.cs +++ b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef2.cs @@ -139,7 +139,7 @@ public override OneOfNullAndRef2 Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class OneOfNullAndRef2."); + throw new JsonException("Property is not nullable for class OneOfNullAndRef2: number."); return new OneOfNullAndRef2(number); } diff --git a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef3.cs b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef3.cs index 9ade8f157f5a..c130f2ec24d5 100644 --- a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef3.cs +++ b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/OneOfNullAndRef3.cs @@ -139,7 +139,7 @@ public override OneOfNullAndRef3 Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class OneOfNullAndRef3."); + throw new JsonException("Property is not nullable for class OneOfNullAndRef3: number."); return new OneOfNullAndRef3(number); } diff --git a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/Parent.cs b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/Parent.cs index d2fd6566d8f4..24712d2aabf4 100644 --- a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/Parent.cs +++ b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/Parent.cs @@ -139,7 +139,7 @@ public override Parent Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class Parent."); + throw new JsonException("Property is not nullable for class Parent: number."); return new Parent(number); } diff --git a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/ParentWithOneOfProperty.cs b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/ParentWithOneOfProperty.cs index af064bac4e56..0dc1c0a0f8c7 100644 --- a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/ParentWithOneOfProperty.cs +++ b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/ParentWithOneOfProperty.cs @@ -139,7 +139,7 @@ public override ParentWithOneOfProperty Read(ref Utf8JsonReader utf8JsonReader, } if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class ParentWithOneOfProperty."); + throw new JsonException("Property is not nullable for class ParentWithOneOfProperty: number."); return new ParentWithOneOfProperty(number); } diff --git a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/ParentWithPluralOneOfProperty.cs b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/ParentWithPluralOneOfProperty.cs index 5dfece8a6d02..8efa0a38f470 100644 --- a/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/ParentWithPluralOneOfProperty.cs +++ b/samples/client/petstore/csharp/generichost/latest/AnnotatedEnum/src/Org.OpenAPITools/Model/ParentWithPluralOneOfProperty.cs @@ -139,7 +139,7 @@ public override ParentWithPluralOneOfProperty Read(ref Utf8JsonReader utf8JsonRe } if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class ParentWithPluralOneOfProperty."); + throw new JsonException("Property is not nullable for class ParentWithPluralOneOfProperty: number."); return new ParentWithPluralOneOfProperty(number); } diff --git a/samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Model/HelloWorldPostRequest.cs b/samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Model/HelloWorldPostRequest.cs index 83136644b5e5..090cd71ce295 100644 --- a/samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Model/HelloWorldPostRequest.cs +++ b/samples/client/petstore/csharp/generichost/latest/HelloWorld/src/Org.OpenAPITools/Model/HelloWorldPostRequest.cs @@ -139,7 +139,7 @@ public override HelloWorldPostRequest Read(ref Utf8JsonReader utf8JsonReader, Ty } if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class HelloWorldPostRequest."); + throw new JsonException("Property is not nullable for class HelloWorldPostRequest: message."); return new HelloWorldPostRequest(message); } diff --git a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/Foo.cs index f584d270555a..c608ecd1f340 100644 --- a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/Foo.cs @@ -139,7 +139,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsDefaultResponse.cs b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsDefaultResponse.cs index 46fd8d0a3dd3..5a4ec01675d2 100644 --- a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsDefaultResponse.cs @@ -139,7 +139,7 @@ public override IconsDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Typ } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class IconsDefaultResponse."); + throw new JsonException("Property is not nullable for class IconsDefaultResponse: string."); return new IconsDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Color.cs b/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Color.cs index 392bf310549c..5c5481748c60 100644 --- a/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Color.cs +++ b/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Color.cs @@ -215,13 +215,13 @@ public override Color Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (b.IsSet && b.Value == null) - throw new ArgumentNullException(nameof(b), "Property is not nullable for class Color."); + throw new JsonException("Property is not nullable for class Color: b."); if (g.IsSet && g.Value == null) - throw new ArgumentNullException(nameof(g), "Property is not nullable for class Color."); + throw new JsonException("Property is not nullable for class Color: g."); if (r.IsSet && r.Value == null) - throw new ArgumentNullException(nameof(r), "Property is not nullable for class Color."); + throw new JsonException("Property is not nullable for class Color: r."); return new Color(b, g, r); } diff --git a/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/NullTypeDirect.cs b/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/NullTypeDirect.cs index cb668927b471..cd7da7e755d1 100644 --- a/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/NullTypeDirect.cs +++ b/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/NullTypeDirect.cs @@ -160,7 +160,7 @@ public override NullTypeDirect Read(ref Utf8JsonReader utf8JsonReader, Type type } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class NullTypeDirect."); + throw new JsonException("Property is not nullable for class NullTypeDirect: id."); return new NullTypeDirect(alwaysNull, id); } diff --git a/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Shape.cs index 877158311288..a4afaf924135 100644 --- a/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Shape.cs @@ -154,13 +154,13 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (area.IsSet && area.Value == null) - throw new ArgumentNullException(nameof(area), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: area."); return new Shape(shapeType.Value!, area); } diff --git a/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 9fc58e50b835..e5fe4baf0ce6 100644 --- a/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -154,13 +154,13 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (area.IsSet && area.Value == null) - throw new ArgumentNullException(nameof(area), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: area."); return new ShapeOrNull(shapeType.Value!, area); } diff --git a/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Widget.cs b/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Widget.cs index d212692286b3..70480fd89109 100644 --- a/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Widget.cs +++ b/samples/client/petstore/csharp/generichost/latest/NullTypes/src/Org.OpenAPITools/Model/Widget.cs @@ -210,16 +210,16 @@ public override Widget Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!id.IsSet) - throw new ArgumentException("Property is required for class Widget.", nameof(id)); + throw new JsonException("Property is required for class Widget: id."); if (!name.IsSet) - throw new ArgumentException("Property is required for class Widget.", nameof(name)); + throw new JsonException("Property is required for class Widget: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Widget."); + throw new JsonException("Property is not nullable for class Widget: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Widget."); + throw new JsonException("Property is not nullable for class Widget: name."); return new Widget(id.Value!.Value!, name.Value!, color, debugInfo, shape); } diff --git a/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/TestObject.cs b/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/TestObject.cs index 49c748d7fb39..6aee702783fc 100644 --- a/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/TestObject.cs +++ b/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/TestObject.cs @@ -139,7 +139,7 @@ public override TestObject Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class TestObject."); + throw new JsonException("Property is not nullable for class TestObject: name."); return new TestObject(name); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Activity.cs index 27267a89b539..e84a4cec971f 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Activity.cs @@ -139,7 +139,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 003514970fcc..a658af0bd23b 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -159,10 +159,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 03a63cf9238e..978164d87a35 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -280,25 +280,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Animal.cs index e9fd3ed17925..18af25619588 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Animal.cs @@ -169,13 +169,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ApiResponse.cs index 2d955bed2864..d7ffff1db1f0 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -179,13 +179,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Apple.cs index 8aba169c7737..243207b6c140 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Apple.cs @@ -209,13 +209,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/AppleReq.cs index 7ede1db8aae9..3963c3509d22 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/AppleReq.cs @@ -152,13 +152,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value!, mealy); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index c5d0c0120cb6..a18bbc8f63b9 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -139,7 +139,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 37e33d235abf..8a78454bd7f4 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -139,7 +139,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayTest.cs index d28d7086029c..046bb9f5f789 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -179,13 +179,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Banana.cs index ee06386ed18c..2096e64bf261 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Banana.cs @@ -139,7 +139,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/BananaReq.cs index 94e303e4efb5..7888e750f399 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/BananaReq.cs @@ -152,13 +152,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value!.Value!, sweet); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/BasquePig.cs index abd455115d64..f8aec378b456 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/BasquePig.cs @@ -132,10 +132,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Capitalization.cs index 41f67b976b5f..a7ffcbe7c972 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Capitalization.cs @@ -240,22 +240,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Cat.cs index 274069876c4a..a51482b1f721 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Cat.cs @@ -139,16 +139,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Category.cs index ef51987c7c78..26190452c0eb 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Category.cs @@ -152,13 +152,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ChildCat.cs index aef73addc4cb..758438f488b8 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ChildCat.cs @@ -201,13 +201,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ClassModel.cs index f87938353430..78874e41333a 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ClassModel.cs @@ -139,7 +139,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 9afab7e4e027..b1995acbd852 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -145,16 +145,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/CopyActivity.cs index 69523975f71e..2ad46f9529a1 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -194,16 +194,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DanishPig.cs index ffcd3973301e..a3462f9eb6bb 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DanishPig.cs @@ -132,10 +132,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DateOnlyClass.cs index e40843855a80..1ba89c4b0f23 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -145,7 +145,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DeprecatedObject.cs index f2fa0117113b..a5bf2bd1380b 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -139,7 +139,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Descendant1.cs index 3113069aea3a..65e39f8e4577 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Descendant1.cs @@ -139,22 +139,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value!, descendantName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Descendant2.cs index 62f9a8ffa5e0..42eda046d03f 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Descendant2.cs @@ -139,22 +139,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value!, confidentiality.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Dog.cs index 4fa08c7e3d5e..3737377345b7 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Dog.cs @@ -139,16 +139,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Drawing.cs index 450a44bf35b2..b1d3b2c1fb15 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Drawing.cs @@ -206,10 +206,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EntityBase.cs index 6e6b3d5e866f..73c73cc8a7b6 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EntityBase.cs @@ -146,10 +146,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EnumArrays.cs index 496fd8e72f03..f29bed6faf30 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -298,10 +298,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EnumTest.cs index 52b718fd0fcb..2a2fd0864702 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EnumTest.cs @@ -816,31 +816,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value!.Value!, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 7291b85426f3..8cc7d8fd5997 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -145,16 +145,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/File.cs index 09cd9b5bf640..1b9107bcbcde 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/File.cs @@ -140,7 +140,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 87b218a512cc..d7ecd89a060b 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -159,10 +159,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Foo.cs index f584d270555a..c608ecd1f340 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Foo.cs @@ -139,7 +139,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index a232f90cafd4..a51857dcf9bf 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -139,7 +139,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FormatTest.cs index 899c764ca96f..f2a74bad58f6 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/FormatTest.cs @@ -820,103 +820,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Fruit.cs index 89a1ee84e622..8c210eaa800a 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Fruit.cs @@ -184,7 +184,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/GmFruit.cs index ab33328b55dd..f0d6a5b664e9 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/GmFruit.cs @@ -188,7 +188,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index c0369d585670..64f803eec3f5 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -149,10 +149,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index b10b320ea8e0..46eddf6866b8 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -159,10 +159,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 9cde7d5b8f89..a16b6b4c9074 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -239,22 +239,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 80aef9813347..55832290c40a 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -145,16 +145,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/List.cs index 9e7b530c64a1..ca168a960df0 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/List.cs @@ -139,7 +139,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 760943a4edef..9acb4b7fdcef 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -159,10 +159,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Mammal.cs index d6fc69bec830..987fbb3d830e 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Mammal.cs @@ -208,10 +208,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MapTest.cs index ccbba4ceeae3..76558010d3a4 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MapTest.cs @@ -265,16 +265,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 5eb5ee1c3d2d..0dbf29842d9a 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -139,7 +139,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedOneOf.cs index 7d90d152a794..c4b8905e427e 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -139,7 +139,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 68918f31043d..6e557faf5401 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -211,16 +211,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedSubId.cs index 7b00310a46f1..a2ef341e5f53 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -139,7 +139,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Model200Response.cs index ddb067055bee..d93c8bedfe26 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Model200Response.cs @@ -159,10 +159,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ModelClient.cs index aa47d610cb2c..aeb95f31d502 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ModelClient.cs @@ -139,7 +139,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Name.cs index b597041faf5f..5f9a8fb3a3de 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Name.cs @@ -192,19 +192,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value!.Value!, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 968636eb694f..e51f5d59cff3 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -145,16 +145,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value!, pkiNotificationtestID.Value!.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NullableClass.cs index c9631230e6ac..92c4cbdb69a0 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NullableClass.cs @@ -376,10 +376,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NullableShape.cs index c40ca112913f..80dfdb987f4e 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NullableShape.cs @@ -187,10 +187,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NumberOnly.cs index 2d5b1da808c7..6843ae36df0a 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -139,7 +139,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index d12f94ab19b1..1c9a5883e7ec 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -202,16 +202,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Order.cs index 0c163e7f8f9a..e8d9f865d7f5 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Order.cs @@ -334,22 +334,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/OuterComposite.cs index 29073f0450ad..d532a9b42b5d 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -179,13 +179,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ParentPet.cs index 9ddabc0feba4..4322d5454caf 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ParentPet.cs @@ -119,10 +119,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Pet.cs index 6f040eb931cd..8ad5fd76b994 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Pet.cs @@ -315,28 +315,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value!, photoUrls.Value!, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Pig.cs index 211913e79f86..7df9ca72ec33 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Pig.cs @@ -187,10 +187,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Quadrilateral.cs index 51ee648ea804..3f316b8da34f 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -187,10 +187,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 4aaf0d1665fb..7b6bcfb175ae 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -132,10 +132,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index d6a361257e44..9cda6a9aad2c 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -159,10 +159,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RequiredClass.cs index e5db62fc1ee8..d4d7e59418ef 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2071,136 +2071,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value!.Value!, requiredNotnullableArrayOfString.Value!, requiredNotnullableBooleanProp.Value!.Value!, requiredNotnullableDatetimeProp.Value!.Value!, requiredNotnullableEnumInteger.Value!.Value!, requiredNotnullableEnumIntegerOnly.Value!.Value!, requiredNotnullableEnumString.Value!.Value!, requiredNotnullableOuterEnumDefaultValue.Value!.Value!, requiredNotnullableStringProp.Value!, requiredNotnullableUuid.Value!.Value!, requiredNotnullableintegerProp.Value!.Value!, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value!, requiredNullableBooleanProp.Value!, requiredNullableDateProp.Value!, requiredNullableDatetimeProp.Value!, requiredNullableEnumInteger.Value!, requiredNullableEnumIntegerOnly.Value!, requiredNullableEnumString.Value!, requiredNullableIntegerProp.Value!, requiredNullableOuterEnumDefaultValue.Value!, requiredNullableStringProp.Value!, requiredNullableUuid.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Result.cs index c766fe3ca280..1c4aeaa55c9b 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Result.cs @@ -182,13 +182,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Return.cs index 464879e9f26c..2ff7d5b30387 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Return.cs @@ -185,19 +185,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value!, varAbstract.Value!, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 469134c26bde..32a28716035a 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -159,10 +159,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index a906d0f6d0dd..6ab0e07a21b0 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -139,7 +139,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index c732bc01a5ad..5023798cda25 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -145,16 +145,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Shape.cs index 4cc43358e2c0..d1be81de0d92 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Shape.cs @@ -187,10 +187,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ShapeInterface.cs index f9441871bb4f..20eac6a7a03f 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -132,10 +132,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ShapeOrNull.cs index b1be624931b2..2585a167c265 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -187,10 +187,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index d3bc2dfb85b3..4292f02570cf 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -145,16 +145,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/SpecialModelName.cs index 98289ad7a6e6..a7259ffb794b 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -159,10 +159,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Tag.cs index 34992e8815bb..cfd7e9543b5f 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Tag.cs @@ -159,10 +159,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index c6dd3fd660ca..b18051653715 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -139,7 +139,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index a6979a10b1c9..fa64236bf974 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -139,7 +139,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestDescendants.cs index 4da09fa5643c..765c44a4a4e1 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -235,16 +235,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 7d85da50aa83..ebe745fa5373 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -146,7 +146,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestResult.cs index b89dacf27aa0..a8361493c62d 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TestResult.cs @@ -181,13 +181,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Triangle.cs index 3c128abf074f..a98796b39e95 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Triangle.cs @@ -208,10 +208,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TriangleInterface.cs index 5ba7f95069db..f8aa93f3012d 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -132,10 +132,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/User.cs index b3c25d6eae7d..a9ced5df860e 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/User.cs @@ -364,31 +364,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Whale.cs index c4e8f3daa18d..6f93eb244067 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Whale.cs @@ -172,16 +172,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value!, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Zebra.cs index 3c1a11d437d7..4e7b7e47af90 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/Zebra.cs @@ -246,13 +246,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value!, type); } diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index a81ccef21b06..7d9d604bc7f7 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -212,7 +212,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 4213420714a8..e39d6528c83e 100644 --- a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -145,16 +145,16 @@ public override Adult Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (children.IsSet && children.Value == null) - throw new ArgumentNullException(nameof(children), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: children."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: $_type."); return new Adult(children, firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Child.cs index f71f244652dc..ca9e960e944e 100644 --- a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -165,19 +165,19 @@ public override Child Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (age.IsSet && age.Value == null) - throw new ArgumentNullException(nameof(age), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: age."); if (boosterSeat.IsSet && boosterSeat.Value == null) - throw new ArgumentNullException(nameof(boosterSeat), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: boosterSeat."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: $_type."); return new Child(age, boosterSeat, firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Person.cs index e65419a3b600..59df30ef628a 100644 --- a/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -197,13 +197,13 @@ public override Person Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: $_type."); return new Person(firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index e6e5bf9b1853..62078fd772e4 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -147,7 +147,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 65dc4a02463e..65f3b8595ee9 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -147,7 +147,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 9ccac387b196..70eeaef7e581 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -196,7 +196,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index ba2d70c2fab5..2f7c7293e846 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -146,7 +146,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 7b0cc8bc8756..df0d290f06ee 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -146,7 +146,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index c7ad4a614836..f3a5418e2170 100644 --- a/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -195,7 +195,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Activity.cs index 2fb20fd76ba8..1c125e463c07 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -145,7 +145,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index a7c053f968ff..434f74698e3b 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -165,10 +165,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 2d355959392c..482589a9e5fc 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -286,25 +286,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 90faf3ed2ad0..371595944d7b 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -175,13 +175,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 332e1e100ce2..57f797027126 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -185,13 +185,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 8559896f3b99..39231f0d396f 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -215,13 +215,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index cc81766fcebe..90b875f38347 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -151,13 +151,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 9a6a9cb6326c..0deac145a207 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 1b911bc1d6c0..114ec6836190 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index e42133d4a724..07ecc2d530e9 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -185,13 +185,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Banana.cs index d887a45c931e..01833655a60c 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index db3b3f2aabd1..e51da17d64bb 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -151,13 +151,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value.Value, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index da8a396dd208..bf65c1513d18 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs @@ -138,10 +138,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 57decedb097c..411ab5061c07 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -246,22 +246,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Cat.cs index f3f27956ed3b..c5c9fa76f628 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -138,16 +138,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Category.cs index d78edc3ee72c..4dfc61b1b3e3 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -158,13 +158,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 46fc753b3481..0d9b46a978e5 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -141,13 +141,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 012fb4ea1848..9d988f7b5984 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -145,7 +145,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 71f28630fcd3..9f1ccf82a8cc 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -151,16 +151,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs index 8d25c498e494..4fb582c6484a 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -134,16 +134,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 36182d9cbb8e..e3acfad07f60 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs @@ -138,10 +138,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 72a7565ec3c6..cd989244f843 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -151,7 +151,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 4e0d1370cc9a..2a867bcc4298 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -145,7 +145,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 5b8587c218e1..7726e8d5c4c2 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs @@ -131,22 +131,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value, descendantName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs index 82cc312ea062..bb2711891d54 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs @@ -131,22 +131,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value, confidentiality.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 5d01cd38ebbe..67c58e4ae967 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -138,16 +138,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index b1c4e76fe748..8e666f2d2867 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -205,10 +205,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs index c7187fd04841..3b32946bb5b9 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs @@ -152,10 +152,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index ee70392a1686..79d09774978a 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -165,10 +165,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 780950460e89..02a65dd082b3 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -298,31 +298,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value.Value, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 6945fabbfb86..665b265fe8b5 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -151,16 +151,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/File.cs index 598363737a5e..6aa960a41e31 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -146,7 +146,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 74bfbfa1b1ec..82e18d1ef389 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -165,10 +165,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Foo.cs index ab3a41f87790..42a29e21422b 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -145,7 +145,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 5d64e47dc7f5..6c0af8514c82 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -145,7 +145,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index b489e77a1e15..fe45e4e488a8 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -826,103 +826,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index a73048ec0ad1..5bd5f12a2603 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -183,7 +183,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 7071fe00f86d..e7a346898f1e 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -187,7 +187,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 98b7ec6c5479..7496855fdf41 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -155,10 +155,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 925dfb5ff515..7ed6d4990ae9 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -206,10 +206,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 2f37dd2a61d9..38948d0c1ed3 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -292,22 +292,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 9e34531ab9ba..2329eea4f42b 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -144,16 +144,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/List.cs index b65cac7456c4..65bc7f611171 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -145,7 +145,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4b1007e9aaf5..3800055a0760 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -165,10 +165,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 9bc6bbaaf9b9..c4acb8c9c9bd 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Mammal.cs @@ -214,10 +214,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 463b714170dd..6e40d4275163 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -205,16 +205,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 57207f29ddb1..2814c36e50fa 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -145,7 +145,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index c3a43f3fc745..c3400316bbc5 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -145,7 +145,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 1d5a4defe637..cc59be1b34d9 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -217,16 +217,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index c1fbf300b336..2843e40b0049 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -145,7 +145,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index bb2913f5df66..38197b7ab613 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -165,10 +165,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index f4acaf49d8f1..66179ce2bd9c 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -145,7 +145,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Name.cs index 19757fa1c327..8d2d529f0503 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -239,19 +239,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value.Value, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 2858e8d86e69..883b72447c75 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -151,16 +151,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value, pkiNotificationtestID.Value.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 0c4818c0bff4..77edeb3e45e0 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -375,10 +375,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index dd205b2df274..dcbb486a9920 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs @@ -193,10 +193,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 428f234deaeb..0e5d10a95ada 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -145,7 +145,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index d8bd9f36ea39..9ecaccc0bb1d 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -208,16 +208,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Order.cs index 66edef8216f7..32ecad789af6 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -251,22 +251,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index 93be59d99690..5e4cea2ad890 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -185,13 +185,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index f268a60b3dcd..a5c2a2f12ef1 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -118,10 +118,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pet.cs index f60a0987b590..bad8f48861c7 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -232,28 +232,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value, photoUrls.Value, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pig.cs index 3d7b78a18292..8922e573ab0f 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Pig.cs @@ -193,10 +193,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index f1b8095c949f..bb695bd00b79 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -193,10 +193,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 790693a4ee03..8d7a57c59526 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -138,10 +138,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index ddd15217fc1f..edcaca516e33 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -203,10 +203,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index eeda5ef0fcc7..2007d33c8f9b 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -895,136 +895,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Result.cs index b57d0b4c7e8e..62bc561934d5 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -188,13 +188,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Return.cs index c4b5b9636bb3..a9c51b8a1ec6 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -191,19 +191,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value, varAbstract.Value, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 9b73fae206ff..5e3a5137cb38 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -165,10 +165,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 22702cfaa178..2b804f7bd98c 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -145,7 +145,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index fc2982004601..d8eac4a684ce 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -151,16 +151,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Shape.cs index 7a2dd62962fb..49b8e42ab4f9 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Shape.cs @@ -193,10 +193,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 54079932ecbf..3fce1535c904 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -138,10 +138,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 52a892aeb9e1..fa998a6ecdd7 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -193,10 +193,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 45ef5585c1a2..179b7c602d12 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -151,16 +151,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 9b3bfdab8bcf..c24374910fa1 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -165,10 +165,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 9ac1082f742a..1106d4a4e7ee 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -165,10 +165,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b48698e26e70..36a4085251e4 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 4d1c9e06a24f..e6726b227d81 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs index c5b9db5913dd..16abb0fa533d 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -168,16 +168,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 5bd2ec9a6bba..a6ad15da33a2 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -145,7 +145,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 5abf98b1e65b..beb1ab579d11 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -187,13 +187,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index 9e1ae42200c6..1ef3b35e8e9c 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Triangle.cs @@ -214,10 +214,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index afe9457b01a5..ed4592635d34 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -138,10 +138,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/User.cs index 90deb77dbaaa..af6279d66395 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -370,31 +370,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 1cdb5bad9dd1..5d5e1b5421b6 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -178,16 +178,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 67b6d90eb1d7..69ee715e38be 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -158,13 +158,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value, type); } diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index ad7eadb1b479..ee7e3eecf739 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -145,7 +145,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs index d43c6780ca28..ca8cfb1a062d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs @@ -147,7 +147,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 23f5c4b3a85d..4cb0bfbebdc6 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -167,10 +167,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ad641f68f2e9..9e6732bcbc10 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -288,25 +288,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs index 6344d530cd6e..457d433df3bb 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs @@ -177,13 +177,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs index 70585c8acf5b..eae8aa1c7bfd 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -187,13 +187,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs index edd6e65f1f41..9627141cf147 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs @@ -217,13 +217,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs index a98f5bd8787f..f21dcb8014b1 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs @@ -153,13 +153,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value!, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 509645c3f350..522624a5ce1d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -147,7 +147,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 9d5c27336962..67bbfe87647d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -147,7 +147,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs index 14d7950c4b6f..a01ecacdd72b 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -187,13 +187,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs index 0a7d794e23fc..ca7e413ceeb6 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs @@ -147,7 +147,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs index 1973db4c4bed..96a98e9e2f69 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs @@ -153,13 +153,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value!.Value!, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs index 8dbfb7552b5f..001ce4a14655 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs @@ -140,10 +140,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs index 68e8220438eb..85b6baa2d754 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs @@ -248,22 +248,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index 0f47bd35e784..05ee372584c4 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -140,16 +140,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs index d411efbb83bd..63a943b1ca32 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs @@ -160,13 +160,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs index d7c5a4cd96ec..506651c5b421 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs @@ -202,13 +202,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs index 16551511b256..ba22c38d013f 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs @@ -147,7 +147,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index e1e504b538e1..bda6577d02c2 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -153,16 +153,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs index 260d78873e2e..1b77996e10c2 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -195,16 +195,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs index ed6bc6534338..fb8adbaeb62f 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs @@ -140,10 +140,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs index f39aa601716f..bde9eedbf899 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -153,7 +153,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 5e4782e9741b..edf3580a5006 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -147,7 +147,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs index 68a2f65c9aff..d0913992d157 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs @@ -140,22 +140,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value!, descendantName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs index 5a130166a0b1..5cd06903b366 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs @@ -140,22 +140,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value!, confidentiality.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index b8435f95759c..d138df0d6905 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -140,16 +140,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs index cce96329e588..678e0ed5419d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs @@ -207,10 +207,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs index a81af5d8181b..4c21cc792a55 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs @@ -154,10 +154,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs index 05f5e7db1d24..087a026beaaf 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -306,10 +306,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs index 62c8f51ce807..2eefc1ef6ba2 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs @@ -824,31 +824,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value!.Value!, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 407e33a7b6f5..c30ec912d755 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -153,16 +153,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs index 6608c8f2c0e0..d5eb5d549ea6 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs @@ -148,7 +148,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d8837421dcac..7e388fa26fa2 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -167,10 +167,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs index 4b75918a83d5..f410f110f43c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs @@ -147,7 +147,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index baa4b149818a..cfc038f14e58 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -147,7 +147,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs index 1badd1c0d948..3c0a18995dc9 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs @@ -828,103 +828,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs index f902f78034c4..363808c467e3 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs @@ -185,7 +185,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs index 1eccb13e9003..57ccb03380ab 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs @@ -189,7 +189,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 4477d4279465..b5365a68d6ba 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -157,10 +157,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 1a446ca46e5a..103d547b76d2 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -208,10 +208,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 82b78a3e00f9..fc3ff4a253e9 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -294,22 +294,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index b211cf0586b1..466c62aea797 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -146,16 +146,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs index b8a8a257d0d2..51f16d706697 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs @@ -147,7 +147,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 70963bef2fc5..91d2b5fb1c3c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -167,10 +167,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs index fc906f76d9ff..05a5e5d55604 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs @@ -216,10 +216,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs index 64474ff0d16d..c232c64f65da 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs @@ -273,16 +273,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 48eca2b1e0b8..f5f988259cdf 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -147,7 +147,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs index e5c9f6f2f2f7..03581cdcfd40 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -147,7 +147,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 1cef2917ba78..840ed7657912 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -219,16 +219,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs index 77c1611f8f80..b385cf0dd9ee 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -147,7 +147,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs index ff4080153aea..bf0f3e968c36 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs @@ -167,10 +167,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs index b32d7f964146..4b654356987a 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs @@ -147,7 +147,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs index 8fd568be1a6b..73f861dcc6cc 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs @@ -241,19 +241,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value!.Value!, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 10c8125b1068..c8a57aa7547f 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -153,16 +153,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value!, pkiNotificationtestID.Value!.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs index d1327d7b480f..96cbd8c1fcca 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs @@ -377,10 +377,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs index b257d25ab62f..f8120a285900 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs @@ -195,10 +195,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs index a463ed4572d3..25105240d38d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -147,7 +147,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 03727598207c..5b4319dbc5ef 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -210,16 +210,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs index ee4d0c85d40a..52073abb4d53 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs @@ -342,22 +342,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs index 686aa2d77797..fe4f0786dbaf 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -187,13 +187,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs index 70e91c22627e..8d83f726bb64 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs @@ -120,10 +120,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs index 5c16160c5db9..84a01f8eeae3 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs @@ -323,28 +323,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value!, photoUrls.Value!, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs index 217360908bd8..fa25f86f0451 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs @@ -195,10 +195,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs index 258df7403653..f3ef0fda6d96 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -195,10 +195,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index bbd3a56b31ed..56c9dfeac6ba 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -140,10 +140,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 3b1999efb42d..72ccb4531a7d 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -205,10 +205,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs index 1912f3c24ebf..186dfc468ead 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2079,136 +2079,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value!.Value!, requiredNotnullableArrayOfString.Value!, requiredNotnullableBooleanProp.Value!.Value!, requiredNotnullableDatetimeProp.Value!.Value!, requiredNotnullableEnumInteger.Value!.Value!, requiredNotnullableEnumIntegerOnly.Value!.Value!, requiredNotnullableEnumString.Value!.Value!, requiredNotnullableOuterEnumDefaultValue.Value!.Value!, requiredNotnullableStringProp.Value!, requiredNotnullableUuid.Value!.Value!, requiredNotnullableintegerProp.Value!.Value!, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value!, requiredNullableBooleanProp.Value!, requiredNullableDateProp.Value!, requiredNullableDatetimeProp.Value!, requiredNullableEnumInteger.Value!, requiredNullableEnumIntegerOnly.Value!, requiredNullableEnumString.Value!, requiredNullableIntegerProp.Value!, requiredNullableOuterEnumDefaultValue.Value!, requiredNullableStringProp.Value!, requiredNullableUuid.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index a6bef2efe103..fe06dd89d4c9 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -190,13 +190,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs index fd9446247331..12c679cd5146 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs @@ -193,19 +193,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value!, varAbstract.Value!, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs index ac6dd43ef0b2..056240574ca5 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -167,10 +167,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 55d774689f49..264d24e0505b 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -147,7 +147,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index f1779050584b..fd0f1d1bcba9 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -153,16 +153,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs index 22f37a48e620..9946323dcdbe 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs @@ -195,10 +195,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs index cb375197e488..4404aab7f1b1 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -140,10 +140,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 4df1e6983ad1..665942a5f44f 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -195,10 +195,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 0034604725d0..c0ba8c4782be 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -153,16 +153,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs index 81c58c98aa68..026f410268fe 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -167,10 +167,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs index a16ea726bfff..0702b6e968f2 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs @@ -167,10 +167,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 182412d38e32..61b664997f85 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -147,7 +147,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 97b4b270f1c9..54b592a8f5a4 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -147,7 +147,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs index 5b568b36e9ec..e75e8fbaeb7c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -243,16 +243,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 07d98ed51393..3e8d19707387 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -147,7 +147,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index d168aff8b9c2..f8a9abc06052 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -189,13 +189,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs index 0be5259f1ebe..c3d21195968a 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs @@ -216,10 +216,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs index c97244ab95ff..358a0e2aa20c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -140,10 +140,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs index c6a4d2cddb86..ce498d7d327c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs @@ -372,31 +372,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs index 74e3afd8dbf8..d0099756b15c 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs @@ -180,16 +180,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value!, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs index f6faea2fd5ed..fae5958200e6 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs @@ -247,13 +247,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value!, type); } diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 796310e1783f..cf5d2bcb6a8f 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -220,7 +220,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Apple.cs index e6e5bf9b1853..62078fd772e4 100644 --- a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -147,7 +147,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 65dc4a02463e..65f3b8595ee9 100644 --- a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -147,7 +147,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index af45459bafc7..995c0a87ad8b 100644 --- a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -213,7 +213,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Orange.cs b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Orange.cs index 793f5553239f..eea08050f18f 100644 --- a/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Orange.cs +++ b/samples/client/petstore/csharp/generichost/net10/OneOf/src/Org.OpenAPITools/Model/Orange.cs @@ -147,7 +147,7 @@ public override Orange Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class Orange."); + throw new JsonException("Property is not nullable for class Orange: sweet."); return new Orange(sweet); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 2fb20fd76ba8..1c125e463c07 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -145,7 +145,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index a7c053f968ff..434f74698e3b 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -165,10 +165,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 2d355959392c..482589a9e5fc 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -286,25 +286,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 90faf3ed2ad0..371595944d7b 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -175,13 +175,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 332e1e100ce2..57f797027126 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -185,13 +185,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 8559896f3b99..39231f0d396f 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -215,13 +215,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index cc81766fcebe..90b875f38347 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -151,13 +151,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 9a6a9cb6326c..0deac145a207 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 1b911bc1d6c0..114ec6836190 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index e42133d4a724..07ecc2d530e9 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -185,13 +185,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d887a45c931e..01833655a60c 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index db3b3f2aabd1..e51da17d64bb 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -151,13 +151,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value.Value, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index da8a396dd208..bf65c1513d18 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -138,10 +138,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 57decedb097c..411ab5061c07 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -246,22 +246,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Cat.cs index f3f27956ed3b..c5c9fa76f628 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -138,16 +138,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Category.cs index d78edc3ee72c..4dfc61b1b3e3 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -158,13 +158,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index d5e2a907d867..fa6b06132a0c 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -200,13 +200,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 012fb4ea1848..9d988f7b5984 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -145,7 +145,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 71f28630fcd3..9f1ccf82a8cc 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -151,16 +151,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 790b30d0598c..fad896e8c944 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -193,16 +193,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 36182d9cbb8e..e3acfad07f60 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -138,10 +138,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 72a7565ec3c6..cd989244f843 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -151,7 +151,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 4e0d1370cc9a..2a867bcc4298 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -145,7 +145,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 00e11bca0df2..ef4fa867e899 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs @@ -138,22 +138,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value, descendantName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index 3ad11787dcb3..d83152dfa6b7 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs @@ -138,22 +138,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value, confidentiality.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 5d01cd38ebbe..67c58e4ae967 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -138,16 +138,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index b1c4e76fe748..8e666f2d2867 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -205,10 +205,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs index c7187fd04841..3b32946bb5b9 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs @@ -152,10 +152,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 231e6fbbf6bc..11f9cab173bd 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -304,10 +304,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 0aaa3e6fe0aa..bd7ccf486fc3 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -822,31 +822,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value.Value, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 6945fabbfb86..665b265fe8b5 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -151,16 +151,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/File.cs index 598363737a5e..6aa960a41e31 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -146,7 +146,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 74bfbfa1b1ec..82e18d1ef389 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -165,10 +165,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Foo.cs index ab3a41f87790..42a29e21422b 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -145,7 +145,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 5d64e47dc7f5..6c0af8514c82 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -145,7 +145,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index b489e77a1e15..fe45e4e488a8 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -826,103 +826,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index a73048ec0ad1..5bd5f12a2603 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -183,7 +183,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 7071fe00f86d..e7a346898f1e 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -187,7 +187,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 98b7ec6c5479..7496855fdf41 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -155,10 +155,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 925dfb5ff515..7ed6d4990ae9 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -206,10 +206,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 4703397c61b3..1644c179c75b 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -292,22 +292,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 9e34531ab9ba..2329eea4f42b 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -144,16 +144,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/List.cs index b65cac7456c4..65bc7f611171 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -145,7 +145,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4b1007e9aaf5..3800055a0760 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -165,10 +165,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 9bc6bbaaf9b9..c4acb8c9c9bd 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -214,10 +214,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index b5cdc783088c..831d190dfa8d 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -271,16 +271,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 57207f29ddb1..2814c36e50fa 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -145,7 +145,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index c3a43f3fc745..c3400316bbc5 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -145,7 +145,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 1d5a4defe637..cc59be1b34d9 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -217,16 +217,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index c1fbf300b336..2843e40b0049 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -145,7 +145,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index bb2913f5df66..38197b7ab613 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -165,10 +165,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index f4acaf49d8f1..66179ce2bd9c 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -145,7 +145,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Name.cs index 19757fa1c327..8d2d529f0503 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -239,19 +239,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value.Value, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 2858e8d86e69..883b72447c75 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -151,16 +151,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value, pkiNotificationtestID.Value.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 0c4818c0bff4..77edeb3e45e0 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -375,10 +375,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index dd205b2df274..dcbb486a9920 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -193,10 +193,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 428f234deaeb..0e5d10a95ada 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -145,7 +145,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index d8bd9f36ea39..9ecaccc0bb1d 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -208,16 +208,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Order.cs index d3f99122b153..f678fe600e84 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -340,22 +340,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 93be59d99690..5e4cea2ad890 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -185,13 +185,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index f268a60b3dcd..a5c2a2f12ef1 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -118,10 +118,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 6d3d8121e68c..599d7d612422 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -321,28 +321,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value, photoUrls.Value, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pig.cs index 3d7b78a18292..8922e573ab0f 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -193,10 +193,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index f1b8095c949f..bb695bd00b79 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -193,10 +193,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 790693a4ee03..8d7a57c59526 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -138,10 +138,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index ddd15217fc1f..edcaca516e33 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -203,10 +203,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 50d69fccab91..779f1eb4f318 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2077,136 +2077,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Result.cs index b57d0b4c7e8e..62bc561934d5 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -188,13 +188,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Return.cs index c4b5b9636bb3..a9c51b8a1ec6 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -191,19 +191,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value, varAbstract.Value, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 9b73fae206ff..5e3a5137cb38 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -165,10 +165,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 22702cfaa178..2b804f7bd98c 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -145,7 +145,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index fc2982004601..d8eac4a684ce 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -151,16 +151,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Shape.cs index 7a2dd62962fb..49b8e42ab4f9 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -193,10 +193,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 54079932ecbf..3fce1535c904 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -138,10 +138,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 52a892aeb9e1..fa998a6ecdd7 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -193,10 +193,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 45ef5585c1a2..179b7c602d12 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -151,16 +151,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 9b3bfdab8bcf..c24374910fa1 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -165,10 +165,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 9ac1082f742a..1106d4a4e7ee 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -165,10 +165,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b48698e26e70..36a4085251e4 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 4d1c9e06a24f..e6726b227d81 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs index a28ece650979..39a686cd928e 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -241,16 +241,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 5bd2ec9a6bba..a6ad15da33a2 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -145,7 +145,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 5abf98b1e65b..beb1ab579d11 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -187,13 +187,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index 9e1ae42200c6..1ef3b35e8e9c 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -214,10 +214,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index afe9457b01a5..ed4592635d34 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -138,10 +138,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/User.cs index 90deb77dbaaa..af6279d66395 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -370,31 +370,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 1cdb5bad9dd1..5d5e1b5421b6 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -178,16 +178,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 8bd6f70f0a95..351e31c7bec1 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -245,13 +245,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value, type); } diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 0f0d25e333db..2614b6be623f 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -218,7 +218,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs index 14a5655c8023..4e8cdbade02e 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs @@ -148,7 +148,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 06c18ced2a1c..ea78057f2157 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -168,10 +168,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index d4e0bd11b830..033acfcc2f86 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -289,25 +289,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs index 6861539d48cb..f17ca142e62e 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs @@ -178,13 +178,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs index 6895b23c9654..7fe2badda61a 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -188,13 +188,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs index ed26f278fc46..28e983f8c1f7 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs @@ -218,13 +218,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs index 95c14d25d542..6bf3eafa9dde 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs @@ -154,13 +154,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value!, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 270d77309df1..31d9c34c847b 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -148,7 +148,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c2fbcd6a7e57..162b12039c99 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -148,7 +148,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs index 877795d5cfd4..554aabd49342 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -188,13 +188,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs index fd95bd629bbe..67d43b51ee6f 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs @@ -148,7 +148,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs index afdff1b19be1..1be1967bbf30 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs @@ -154,13 +154,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value!.Value!, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs index d2b0f9fc8e45..a0e29952cf6b 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs @@ -141,10 +141,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs index 26ea3730fba7..88ffeedd57e2 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs @@ -249,22 +249,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index c44fc9083169..e4b3cccaac9a 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -141,16 +141,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs index 9795a7beec1b..1201a731b6e7 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs @@ -161,13 +161,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs index 77c923435187..15382bf6aba3 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs @@ -203,13 +203,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs index 90236769cb4a..b90a63c9080f 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs @@ -148,7 +148,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index d1828daed8ba..ce569aa8a223 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -154,16 +154,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs index 7c1c3f7fe287..6ea89bfa46cf 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -196,16 +196,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs index 94e9213fe899..c75866f77a37 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs @@ -141,10 +141,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 60ef9165d975..e6886061ce16 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -154,7 +154,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 4b96563e3461..f38c40855cf9 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -148,7 +148,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs index 48aba268c5b9..4b36c6fb200e 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs @@ -141,22 +141,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value!, descendantName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs index aae60577a78f..4060b8ea853e 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs @@ -141,22 +141,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value!, confidentiality.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index f43fe465b65a..16dc36126f60 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -141,16 +141,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs index d26192a1adba..0204ffd11b67 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs @@ -208,10 +208,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs index 74cb49595291..18696b473eaa 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs @@ -155,10 +155,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs index 5c6eccf09721..fb02ff8e8d41 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -307,10 +307,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs index 57e8cd61d373..4e67307c599d 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs @@ -825,31 +825,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value!.Value!, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index a4d6ad4c2f68..b3efb43120f2 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -154,16 +154,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/File.cs index c26fe4f172ce..5b777b632272 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/File.cs @@ -149,7 +149,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 77eeacd1bfce..c77f93cc5dda 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -168,10 +168,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs index a26bca0b15d4..9bc633fb1347 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs @@ -148,7 +148,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 23d6edaccb8c..ed0f645778c7 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -148,7 +148,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs index bc64a259b1eb..5e2b0098cd89 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs @@ -829,103 +829,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs index b9adf9d71cc8..9bef81f9165b 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs @@ -186,7 +186,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs index a2198a7ec32a..319c972914d5 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs @@ -190,7 +190,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 831bc16de8c2..a561b03d9a80 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -158,10 +158,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 098874540247..ef6d3ab7c298 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -209,10 +209,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index f14013f65705..8428d73f1f4d 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -295,22 +295,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 261267b6c02f..76f823c04feb 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -147,16 +147,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/List.cs index d6cd61b8668e..d2428a617391 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/List.cs @@ -148,7 +148,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 3de1c9b7ebc5..5089070ed31b 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -168,10 +168,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs index a6fd263ff981..02f86812548c 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs @@ -217,10 +217,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs index a8ff51c976de..be29a234a40f 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs @@ -274,16 +274,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 93b19a688f74..b161e262d82e 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -148,7 +148,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs index f79216144534..88bbc61728d0 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -148,7 +148,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2a2d05afb5bf..00c741fe8230 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -220,16 +220,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs index e9036f7546d3..e7b51c028c54 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -148,7 +148,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs index 4538cb6884df..6f113f248688 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs @@ -168,10 +168,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs index 357ce5b2d143..aa8b7f0e664c 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs @@ -148,7 +148,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs index 37f41d119044..a57af8984382 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs @@ -242,19 +242,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value!.Value!, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 358f13e8de5f..49af3bbc0011 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -154,16 +154,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value!, pkiNotificationtestID.Value!.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs index 5bf7c08c2823..4c37377b8b56 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs @@ -378,10 +378,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs index f768d56b98d9..650fa75d3470 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs @@ -196,10 +196,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs index b051d11b1761..f3b39743e06c 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -148,7 +148,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index e041d875bc51..181ca33013a1 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -211,16 +211,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs index 5a9d1362547d..2a4479bb6892 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs @@ -343,22 +343,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs index 4a94f026f474..611702e0a740 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -188,13 +188,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs index 3cac06dda885..b5a9f269d06a 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs @@ -121,10 +121,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs index 4e7c71f8a59d..2f834d4ad27e 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs @@ -324,28 +324,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value!, photoUrls.Value!, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs index 5640fd1d9c8d..4e3ca083f0e0 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs @@ -196,10 +196,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs index eabed88718f8..07a6da257acc 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -196,10 +196,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index ac2b8e61cd67..6da445395d9b 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -141,10 +141,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 8a93f3022a91..721f02f2e915 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -206,10 +206,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs index 599aa94d5e5e..b876a0dfebb4 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2080,136 +2080,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value!.Value!, requiredNotnullableArrayOfString.Value!, requiredNotnullableBooleanProp.Value!.Value!, requiredNotnullableDatetimeProp.Value!.Value!, requiredNotnullableEnumInteger.Value!.Value!, requiredNotnullableEnumIntegerOnly.Value!.Value!, requiredNotnullableEnumString.Value!.Value!, requiredNotnullableOuterEnumDefaultValue.Value!.Value!, requiredNotnullableStringProp.Value!, requiredNotnullableUuid.Value!.Value!, requiredNotnullableintegerProp.Value!.Value!, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value!, requiredNullableBooleanProp.Value!, requiredNullableDateProp.Value!, requiredNullableDatetimeProp.Value!, requiredNullableEnumInteger.Value!, requiredNullableEnumIntegerOnly.Value!, requiredNullableEnumString.Value!, requiredNullableIntegerProp.Value!, requiredNullableOuterEnumDefaultValue.Value!, requiredNullableStringProp.Value!, requiredNullableUuid.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 5e2d71377d97..bbeabbb4a288 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -191,13 +191,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs index 36c27ec413ed..a939792e9831 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs @@ -194,19 +194,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value!, varAbstract.Value!, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs index bbaefb23e8b7..1dd908069a7d 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -168,10 +168,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index e292a138c48e..af7998bdab26 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -148,7 +148,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 9e866915b32f..fd5f5a3f6e69 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -154,16 +154,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs index 4c152f2ef2fe..2a1135dcf33c 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs @@ -196,10 +196,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs index 5aedd501c226..2d1a8d444eba 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -141,10 +141,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs index b18fbb1d936e..4ff352dcff8f 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -196,10 +196,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index e7ed21a8c3ca..7de7001d7e74 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -154,16 +154,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs index edf8a9edcacf..5d8916e01495 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -168,10 +168,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs index a5f86d17a002..9d3e01cfe13f 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs @@ -168,10 +168,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 508388831ad1..a77e39fb335a 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -148,7 +148,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index cdd78842b091..fa3bdcca712c 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -148,7 +148,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs index 7410185d15aa..c55f09c24ad7 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -244,16 +244,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 41fcb61c7c76..79f0d4ead06e 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -148,7 +148,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index eee7fb7736e2..ed2c4f9b1ee4 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -190,13 +190,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs index 5e994d5c98e6..a136888f90d4 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs @@ -217,10 +217,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs index 20b576d5efbd..bacb230b71b7 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -141,10 +141,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/User.cs index 2589af030b24..66da53d722ec 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/User.cs @@ -373,31 +373,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs index a55ad54be20d..29ec64728866 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs @@ -181,16 +181,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value!, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs index 143976f6b272..fa37280bcd17 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs @@ -248,13 +248,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value!, type); } diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 733adac3c5c4..184ee862a155 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -221,7 +221,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index f8d7a66197ae..43cfd5298ad3 100644 --- a/samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net10/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -169,10 +169,10 @@ public override NowGet200Response Read(ref Utf8JsonReader utf8JsonReader, Type t } if (now.IsSet && now.Value == null) - throw new ArgumentNullException(nameof(now), "Property is not nullable for class NowGet200Response."); + throw new JsonException("Property is not nullable for class NowGet200Response: now."); if (today.IsSet && today.Value == null) - throw new ArgumentNullException(nameof(today), "Property is not nullable for class NowGet200Response."); + throw new JsonException("Property is not nullable for class NowGet200Response: today."); return new NowGet200Response(now, today); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 7c252ba330b0..b9b18bbc096f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -143,16 +143,16 @@ public override Adult Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (children.IsSet && children.Value == null) - throw new ArgumentNullException(nameof(children), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: children."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: $_type."); return new Adult(children, firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs index 3724280d3572..d5462ab3dbf8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -163,19 +163,19 @@ public override Child Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (age.IsSet && age.Value == null) - throw new ArgumentNullException(nameof(age), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: age."); if (boosterSeat.IsSet && boosterSeat.Value == null) - throw new ArgumentNullException(nameof(boosterSeat), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: boosterSeat."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: $_type."); return new Child(age, boosterSeat, firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs index fea620444347..625786083eea 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -195,13 +195,13 @@ public override Person Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: $_type."); return new Person(firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index 20d70a152cc9..df4bf4e37b63 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -145,7 +145,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 146ac2da958d..88894092e99e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 5ccdcf14a13d..d7af13151fef 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -194,7 +194,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 136b36a89958..b5687ef261f4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -144,7 +144,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 4e5dcd6f057e..7dbf98be365b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -144,7 +144,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index 6d5e8f1779c9..2dae9960660f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -193,7 +193,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs index 6ef65dc03490..99262aea8c59 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -145,7 +145,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 0900bb21d987..03949c150021 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -165,10 +165,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 1ea3cc6d6d13..326b04bfc736 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -286,25 +286,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs index af30b50b1efd..24bb80b1161e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -175,13 +175,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 891117de444d..53bcd08ade21 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -185,13 +185,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 415d977cb273..75cee1b3c300 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -215,13 +215,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index a8bb9970d266..3b78fca25fa6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -151,13 +151,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cf982fbeaccc..a7dd1fab07e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 9a0450a54939..977b54bc1746 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 946aa81707b4..083bb513576a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -185,13 +185,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs index 1963adefce90..f330f0454ebf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index d88783cbab2d..b7bc9af9a97d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -151,13 +151,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value.Value, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index da8a396dd208..bf65c1513d18 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs @@ -138,10 +138,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 35fa5c799fe0..fd01e5b09eaf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -246,22 +246,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs index dbf7d5878726..ea0441165f89 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -138,16 +138,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs index c33db720faab..6dc2362cc48e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -158,13 +158,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index fffbe391d3d5..73f63544fda2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -141,13 +141,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 2cec4e3ee767..62e448309893 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -145,7 +145,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 71f28630fcd3..9f1ccf82a8cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -151,16 +151,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs index 8d25c498e494..4fb582c6484a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -134,16 +134,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 36182d9cbb8e..e3acfad07f60 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs @@ -138,10 +138,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index f272f800a65b..b4f039671025 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -151,7 +151,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 5b795e143682..de7a0f313660 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -145,7 +145,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 5b8587c218e1..7726e8d5c4c2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs @@ -131,22 +131,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value, descendantName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs index 82cc312ea062..bb2711891d54 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs @@ -131,22 +131,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value, confidentiality.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 8f43963d5b4f..e076e9c9525e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -138,16 +138,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index 2bf745f2f7d4..2aa9413a0cfb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -205,10 +205,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs index c7187fd04841..3b32946bb5b9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs @@ -152,10 +152,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 96c5f9bbb699..ac797b4b2a4d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -165,10 +165,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 3ed05af68273..c9546d45bb5e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -298,31 +298,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value.Value, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 6945fabbfb86..665b265fe8b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -151,16 +151,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs index f3b89016ca8c..159542d8f5fa 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -146,7 +146,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 70c50972598e..d9dd4b26705c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -165,10 +165,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 0bde70e7d10c..a631d8e2d18a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -145,7 +145,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 6f6db2d948a2..1bbcb2be323c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -145,7 +145,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index b16df5f518e0..30fe9ab86ca4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -826,103 +826,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index e6781b1c920b..d1a64f42f03b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -183,7 +183,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 2df46dde14c4..8d572546f439 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -187,7 +187,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 98b7ec6c5479..7496855fdf41 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -155,10 +155,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 925dfb5ff515..7ed6d4990ae9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -206,10 +206,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 4655c9cbb01e..c3b0e495f381 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -292,22 +292,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 9e34531ab9ba..2329eea4f42b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -144,16 +144,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs index 0ba836f7be5f..eef51661c9d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -145,7 +145,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4e22fe711e2a..0ca2db559ebe 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -165,10 +165,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 9bc6bbaaf9b9..c4acb8c9c9bd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Mammal.cs @@ -214,10 +214,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 3b1494e797da..a8f945455f89 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -205,16 +205,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 90526549ac2b..02b04b791e8e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -145,7 +145,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2376786bd50e..40618643e1b0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -145,7 +145,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index d406287f4039..ea319b6748e3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -217,16 +217,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 2220371abceb..87e11e6999e3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -145,7 +145,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index 09990a706a8c..d9971e56423d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -165,10 +165,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 64b5da999734..429d211bd3f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -145,7 +145,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs index f657f42be0ab..8d1f2aeb0db8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -239,19 +239,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value.Value, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 2858e8d86e69..883b72447c75 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -151,16 +151,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value, pkiNotificationtestID.Value.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index ba9cfa507092..dd795c454755 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -375,10 +375,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index dd205b2df274..dcbb486a9920 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs @@ -193,10 +193,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 209be6be1047..f9c0e035e424 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -145,7 +145,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 7881bc48f66e..1cf2977d186e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -208,16 +208,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs index 5db132a9cff4..e290d5709f95 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -251,22 +251,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index 448c538f19d8..99b0abbaa0f5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -185,13 +185,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index f268a60b3dcd..a5c2a2f12ef1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -118,10 +118,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs index de88b51a5ecf..f7160d5780d4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -232,28 +232,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value, photoUrls.Value, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs index 3d7b78a18292..8922e573ab0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Pig.cs @@ -193,10 +193,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index f1b8095c949f..bb695bd00b79 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -193,10 +193,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 790693a4ee03..8d7a57c59526 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -138,10 +138,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 6c679f4eadf0..3fbd226849a8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -203,10 +203,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index d756563bf256..e9bd5a324422 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -895,136 +895,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs index 7ed1ea210629..533d484093fd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -188,13 +188,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs index 6870e58a4e5b..c44b71b7659b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -191,19 +191,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value, varAbstract.Value, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 88ac872eba81..455206911cd3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -165,10 +165,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 7ac7e71cbc15..367680a1a300 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -145,7 +145,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index fc2982004601..d8eac4a684ce 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -151,16 +151,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs index 7a2dd62962fb..49b8e42ab4f9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Shape.cs @@ -193,10 +193,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 54079932ecbf..3fce1535c904 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -138,10 +138,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 52a892aeb9e1..fa998a6ecdd7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -193,10 +193,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 45ef5585c1a2..179b7c602d12 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -151,16 +151,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index b6bcd6886413..51235500e5cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -165,10 +165,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs index d0d4298cab55..04b4e2a7feb8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -165,10 +165,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index db057bf9b74f..77efc5ff13d4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index e7b97dd14788..d58df26387cf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs index c5b9db5913dd..16abb0fa533d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -168,16 +168,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index b2ef6e096109..1e931bd94731 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -145,7 +145,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index e367448c907f..5da58612b7ef 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -187,13 +187,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index 9e1ae42200c6..1ef3b35e8e9c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Triangle.cs @@ -214,10 +214,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index afe9457b01a5..ed4592635d34 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -138,10 +138,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs index dd4db4f456f1..6371c3897a76 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -370,31 +370,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs index c1abfbfd12c0..a862447465b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -178,16 +178,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 6ee3d041ef55..fd8f11161c9f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -158,13 +158,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value, type); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 3ad9a7fbd48a..4690a7b40e2f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -145,7 +145,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs index 20d70a152cc9..df4bf4e37b63 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -145,7 +145,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 146ac2da958d..88894092e99e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index bf55b771e444..80949bcaa7c1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -211,7 +211,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Orange.cs b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Orange.cs index ea6d4f8d915d..f940611e82c1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Orange.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/OneOf/src/Org.OpenAPITools/Model/Orange.cs @@ -145,7 +145,7 @@ public override Orange Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class Orange."); + throw new JsonException("Property is not nullable for class Orange: sweet."); return new Orange(sweet); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 6ef65dc03490..99262aea8c59 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -145,7 +145,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 0900bb21d987..03949c150021 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -165,10 +165,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 1ea3cc6d6d13..326b04bfc736 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -286,25 +286,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs index af30b50b1efd..24bb80b1161e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -175,13 +175,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 891117de444d..53bcd08ade21 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -185,13 +185,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 415d977cb273..75cee1b3c300 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -215,13 +215,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index a8bb9970d266..3b78fca25fa6 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -151,13 +151,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cf982fbeaccc..a7dd1fab07e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 9a0450a54939..977b54bc1746 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 946aa81707b4..083bb513576a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -185,13 +185,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 1963adefce90..f330f0454ebf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index d88783cbab2d..b7bc9af9a97d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -151,13 +151,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value.Value, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index da8a396dd208..bf65c1513d18 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -138,10 +138,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 35fa5c799fe0..fd01e5b09eaf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -246,22 +246,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs index dbf7d5878726..ea0441165f89 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -138,16 +138,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs index c33db720faab..6dc2362cc48e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -158,13 +158,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 0df505327662..f14bc54e1086 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -200,13 +200,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 2cec4e3ee767..62e448309893 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -145,7 +145,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 71f28630fcd3..9f1ccf82a8cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -151,16 +151,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 790b30d0598c..fad896e8c944 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -193,16 +193,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 36182d9cbb8e..e3acfad07f60 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -138,10 +138,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index f272f800a65b..b4f039671025 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -151,7 +151,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 5b795e143682..de7a0f313660 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -145,7 +145,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 00e11bca0df2..ef4fa867e899 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs @@ -138,22 +138,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value, descendantName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index 3ad11787dcb3..d83152dfa6b7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs @@ -138,22 +138,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value, confidentiality.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 8f43963d5b4f..e076e9c9525e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -138,16 +138,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 2bf745f2f7d4..2aa9413a0cfb 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -205,10 +205,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs index c7187fd04841..3b32946bb5b9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs @@ -152,10 +152,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 75fc3819ecf1..bb1e852f9e73 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -304,10 +304,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index bd1502d4326b..41c51e61b129 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -822,31 +822,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value.Value, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 6945fabbfb86..665b265fe8b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -151,16 +151,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs index f3b89016ca8c..159542d8f5fa 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -146,7 +146,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 70c50972598e..d9dd4b26705c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -165,10 +165,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 0bde70e7d10c..a631d8e2d18a 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -145,7 +145,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 6f6db2d948a2..1bbcb2be323c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -145,7 +145,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index b16df5f518e0..30fe9ab86ca4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -826,103 +826,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index e6781b1c920b..d1a64f42f03b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -183,7 +183,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 2df46dde14c4..8d572546f439 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -187,7 +187,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 98b7ec6c5479..7496855fdf41 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -155,10 +155,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 925dfb5ff515..7ed6d4990ae9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -206,10 +206,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 4655c9cbb01e..c3b0e495f381 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -292,22 +292,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 9e34531ab9ba..2329eea4f42b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -144,16 +144,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs index 0ba836f7be5f..eef51661c9d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -145,7 +145,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4e22fe711e2a..0ca2db559ebe 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -165,10 +165,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 9bc6bbaaf9b9..c4acb8c9c9bd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -214,10 +214,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index c216c04d6468..fda445a67fcd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -271,16 +271,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 90526549ac2b..02b04b791e8e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -145,7 +145,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2376786bd50e..40618643e1b0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -145,7 +145,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index d406287f4039..ea319b6748e3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -217,16 +217,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 2220371abceb..87e11e6999e3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -145,7 +145,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 09990a706a8c..d9971e56423d 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -165,10 +165,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 64b5da999734..429d211bd3f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -145,7 +145,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs index f657f42be0ab..8d1f2aeb0db8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -239,19 +239,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value.Value, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 2858e8d86e69..883b72447c75 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -151,16 +151,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value, pkiNotificationtestID.Value.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index ba9cfa507092..dd795c454755 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -375,10 +375,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index dd205b2df274..dcbb486a9920 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -193,10 +193,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 209be6be1047..f9c0e035e424 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -145,7 +145,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 7881bc48f66e..1cf2977d186e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -208,16 +208,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs index 4d4a6167efc2..610909884b0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -340,22 +340,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 448c538f19d8..99b0abbaa0f5 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -185,13 +185,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index f268a60b3dcd..a5c2a2f12ef1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -118,10 +118,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs index d8bb45eae944..33a3d6dece38 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -321,28 +321,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value, photoUrls.Value, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs index 3d7b78a18292..8922e573ab0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -193,10 +193,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index f1b8095c949f..bb695bd00b79 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -193,10 +193,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 790693a4ee03..8d7a57c59526 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -138,10 +138,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 6c679f4eadf0..3fbd226849a8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -203,10 +203,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index a5e6b6f451b2..fae1bd2034ce 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2077,136 +2077,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs index 7ed1ea210629..533d484093fd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -188,13 +188,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6870e58a4e5b..c44b71b7659b 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -191,19 +191,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value, varAbstract.Value, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 88ac872eba81..455206911cd3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -165,10 +165,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 7ac7e71cbc15..367680a1a300 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -145,7 +145,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index fc2982004601..d8eac4a684ce 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -151,16 +151,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs index 7a2dd62962fb..49b8e42ab4f9 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -193,10 +193,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 54079932ecbf..3fce1535c904 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -138,10 +138,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 52a892aeb9e1..fa998a6ecdd7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -193,10 +193,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 45ef5585c1a2..179b7c602d12 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -151,16 +151,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index b6bcd6886413..51235500e5cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -165,10 +165,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs index d0d4298cab55..04b4e2a7feb8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -165,10 +165,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index db057bf9b74f..77efc5ff13d4 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index e7b97dd14788..d58df26387cf 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs index a28ece650979..39a686cd928e 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -241,16 +241,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index b2ef6e096109..1e931bd94731 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -145,7 +145,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index e367448c907f..5da58612b7ef 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -187,13 +187,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index 9e1ae42200c6..1ef3b35e8e9c 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -214,10 +214,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index afe9457b01a5..ed4592635d34 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -138,10 +138,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs index dd4db4f456f1..6371c3897a76 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -370,31 +370,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs index c1abfbfd12c0..a862447465b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -178,16 +178,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index c6144e93c73d..4d6c01689db7 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -245,13 +245,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value, type); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 4ce3561c85ec..44b24d2dad67 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -218,7 +218,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 1fbff79470fe..e398a5c02a61 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -167,10 +167,10 @@ public override NowGet200Response Read(ref Utf8JsonReader utf8JsonReader, Type t } if (now.IsSet && now.Value == null) - throw new ArgumentNullException(nameof(now), "Property is not nullable for class NowGet200Response."); + throw new JsonException("Property is not nullable for class NowGet200Response: now."); if (today.IsSet && today.Value == null) - throw new ArgumentNullException(nameof(today), "Property is not nullable for class NowGet200Response."); + throw new JsonException("Property is not nullable for class NowGet200Response: today."); return new NowGet200Response(now, today); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 7c252ba330b0..b9b18bbc096f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -143,16 +143,16 @@ public override Adult Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (children.IsSet && children.Value == null) - throw new ArgumentNullException(nameof(children), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: children."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: $_type."); return new Adult(children, firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs index 3724280d3572..d5462ab3dbf8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -163,19 +163,19 @@ public override Child Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (age.IsSet && age.Value == null) - throw new ArgumentNullException(nameof(age), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: age."); if (boosterSeat.IsSet && boosterSeat.Value == null) - throw new ArgumentNullException(nameof(boosterSeat), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: boosterSeat."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: $_type."); return new Child(age, boosterSeat, firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs index fea620444347..625786083eea 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -195,13 +195,13 @@ public override Person Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: $_type."); return new Person(firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index 20d70a152cc9..df4bf4e37b63 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -145,7 +145,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 146ac2da958d..88894092e99e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 5ccdcf14a13d..d7af13151fef 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -194,7 +194,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index 136b36a89958..b5687ef261f4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -144,7 +144,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 4e5dcd6f057e..7dbf98be365b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -144,7 +144,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index 6d5e8f1779c9..2dae9960660f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -193,7 +193,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs index 6ef65dc03490..99262aea8c59 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -145,7 +145,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 0900bb21d987..03949c150021 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -165,10 +165,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 1ea3cc6d6d13..326b04bfc736 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -286,25 +286,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs index af30b50b1efd..24bb80b1161e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -175,13 +175,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 891117de444d..53bcd08ade21 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -185,13 +185,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 415d977cb273..75cee1b3c300 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -215,13 +215,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index a8bb9970d266..3b78fca25fa6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -151,13 +151,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cf982fbeaccc..a7dd1fab07e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 9a0450a54939..977b54bc1746 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index 946aa81707b4..083bb513576a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -185,13 +185,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs index 1963adefce90..f330f0454ebf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index d88783cbab2d..b7bc9af9a97d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -151,13 +151,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value.Value, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index da8a396dd208..bf65c1513d18 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs @@ -138,10 +138,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 35fa5c799fe0..fd01e5b09eaf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -246,22 +246,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index dbf7d5878726..ea0441165f89 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -138,16 +138,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs index c33db720faab..6dc2362cc48e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -158,13 +158,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index fffbe391d3d5..73f63544fda2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -141,13 +141,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 2cec4e3ee767..62e448309893 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -145,7 +145,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 71f28630fcd3..9f1ccf82a8cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -151,16 +151,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs index 8d25c498e494..4fb582c6484a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -134,16 +134,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 36182d9cbb8e..e3acfad07f60 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs @@ -138,10 +138,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index f272f800a65b..b4f039671025 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -151,7 +151,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 5b795e143682..de7a0f313660 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -145,7 +145,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 5b8587c218e1..7726e8d5c4c2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs @@ -131,22 +131,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value, descendantName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs index 82cc312ea062..bb2711891d54 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs @@ -131,22 +131,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value, confidentiality.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 8f43963d5b4f..e076e9c9525e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -138,16 +138,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index 2bf745f2f7d4..2aa9413a0cfb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -205,10 +205,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs index c7187fd04841..3b32946bb5b9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs @@ -152,10 +152,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index 96c5f9bbb699..ac797b4b2a4d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -165,10 +165,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 3ed05af68273..c9546d45bb5e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -298,31 +298,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value.Value, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 6945fabbfb86..665b265fe8b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -151,16 +151,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs index f3b89016ca8c..159542d8f5fa 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -146,7 +146,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 70c50972598e..d9dd4b26705c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -165,10 +165,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs index 0bde70e7d10c..a631d8e2d18a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -145,7 +145,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 6f6db2d948a2..1bbcb2be323c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -145,7 +145,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index b16df5f518e0..30fe9ab86ca4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -826,103 +826,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index e6781b1c920b..d1a64f42f03b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -183,7 +183,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 2df46dde14c4..8d572546f439 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -187,7 +187,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 98b7ec6c5479..7496855fdf41 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -155,10 +155,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 925dfb5ff515..7ed6d4990ae9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -206,10 +206,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 4655c9cbb01e..c3b0e495f381 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -292,22 +292,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 9e34531ab9ba..2329eea4f42b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -144,16 +144,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs index 0ba836f7be5f..eef51661c9d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -145,7 +145,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4e22fe711e2a..0ca2db559ebe 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -165,10 +165,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 9bc6bbaaf9b9..c4acb8c9c9bd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs @@ -214,10 +214,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 3b1494e797da..a8f945455f89 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -205,16 +205,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 90526549ac2b..02b04b791e8e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -145,7 +145,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2376786bd50e..40618643e1b0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -145,7 +145,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index d406287f4039..ea319b6748e3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -217,16 +217,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index 2220371abceb..87e11e6999e3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -145,7 +145,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index 09990a706a8c..d9971e56423d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -165,10 +165,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index 64b5da999734..429d211bd3f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -145,7 +145,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs index f657f42be0ab..8d1f2aeb0db8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -239,19 +239,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value.Value, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 2858e8d86e69..883b72447c75 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -151,16 +151,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value, pkiNotificationtestID.Value.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index ba9cfa507092..dd795c454755 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -375,10 +375,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index dd205b2df274..dcbb486a9920 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs @@ -193,10 +193,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 209be6be1047..f9c0e035e424 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -145,7 +145,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 7881bc48f66e..1cf2977d186e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -208,16 +208,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs index 5db132a9cff4..e290d5709f95 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -251,22 +251,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index 448c538f19d8..99b0abbaa0f5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -185,13 +185,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index f268a60b3dcd..a5c2a2f12ef1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -118,10 +118,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs index de88b51a5ecf..f7160d5780d4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -232,28 +232,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value, photoUrls.Value, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs index 3d7b78a18292..8922e573ab0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Pig.cs @@ -193,10 +193,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index f1b8095c949f..bb695bd00b79 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -193,10 +193,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 790693a4ee03..8d7a57c59526 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -138,10 +138,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 6c679f4eadf0..3fbd226849a8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -203,10 +203,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index d756563bf256..e9bd5a324422 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -895,136 +895,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs index 7ed1ea210629..533d484093fd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -188,13 +188,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs index 6870e58a4e5b..c44b71b7659b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -191,19 +191,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value, varAbstract.Value, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 88ac872eba81..455206911cd3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -165,10 +165,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 7ac7e71cbc15..367680a1a300 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -145,7 +145,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index fc2982004601..d8eac4a684ce 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -151,16 +151,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs index 7a2dd62962fb..49b8e42ab4f9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Shape.cs @@ -193,10 +193,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 54079932ecbf..3fce1535c904 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -138,10 +138,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 52a892aeb9e1..fa998a6ecdd7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -193,10 +193,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 45ef5585c1a2..179b7c602d12 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -151,16 +151,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index b6bcd6886413..51235500e5cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -165,10 +165,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs index d0d4298cab55..04b4e2a7feb8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -165,10 +165,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index db057bf9b74f..77efc5ff13d4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index e7b97dd14788..d58df26387cf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs index c5b9db5913dd..16abb0fa533d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -168,16 +168,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index b2ef6e096109..1e931bd94731 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -145,7 +145,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index e367448c907f..5da58612b7ef 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -187,13 +187,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index 9e1ae42200c6..1ef3b35e8e9c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs @@ -214,10 +214,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index afe9457b01a5..ed4592635d34 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -138,10 +138,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs index dd4db4f456f1..6371c3897a76 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -370,31 +370,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs index c1abfbfd12c0..a862447465b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -178,16 +178,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 6ee3d041ef55..fd8f11161c9f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -158,13 +158,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value, type); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 3ad9a7fbd48a..4690a7b40e2f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -145,7 +145,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs index 20d70a152cc9..df4bf4e37b63 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -145,7 +145,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 146ac2da958d..88894092e99e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index bf55b771e444..80949bcaa7c1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -211,7 +211,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Orange.cs b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Orange.cs index ea6d4f8d915d..f940611e82c1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Orange.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/OneOf/src/Org.OpenAPITools/Model/Orange.cs @@ -145,7 +145,7 @@ public override Orange Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class Orange."); + throw new JsonException("Property is not nullable for class Orange: sweet."); return new Orange(sweet); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 6ef65dc03490..99262aea8c59 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -145,7 +145,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 0900bb21d987..03949c150021 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -165,10 +165,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 1ea3cc6d6d13..326b04bfc736 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -286,25 +286,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs index af30b50b1efd..24bb80b1161e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -175,13 +175,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 891117de444d..53bcd08ade21 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -185,13 +185,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 415d977cb273..75cee1b3c300 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -215,13 +215,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index a8bb9970d266..3b78fca25fa6 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -151,13 +151,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cf982fbeaccc..a7dd1fab07e2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 9a0450a54939..977b54bc1746 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 946aa81707b4..083bb513576a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -185,13 +185,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 1963adefce90..f330f0454ebf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index d88783cbab2d..b7bc9af9a97d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -151,13 +151,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value.Value, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index da8a396dd208..bf65c1513d18 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -138,10 +138,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 35fa5c799fe0..fd01e5b09eaf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -246,22 +246,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index dbf7d5878726..ea0441165f89 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -138,16 +138,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs index c33db720faab..6dc2362cc48e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -158,13 +158,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 0df505327662..f14bc54e1086 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -200,13 +200,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 2cec4e3ee767..62e448309893 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -145,7 +145,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 71f28630fcd3..9f1ccf82a8cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -151,16 +151,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 790b30d0598c..fad896e8c944 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -193,16 +193,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 36182d9cbb8e..e3acfad07f60 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -138,10 +138,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index f272f800a65b..b4f039671025 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -151,7 +151,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 5b795e143682..de7a0f313660 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -145,7 +145,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 00e11bca0df2..ef4fa867e899 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs @@ -138,22 +138,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value, descendantName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index 3ad11787dcb3..d83152dfa6b7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs @@ -138,22 +138,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value, confidentiality.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 8f43963d5b4f..e076e9c9525e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -138,16 +138,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 2bf745f2f7d4..2aa9413a0cfb 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -205,10 +205,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs index c7187fd04841..3b32946bb5b9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs @@ -152,10 +152,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 75fc3819ecf1..bb1e852f9e73 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -304,10 +304,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index bd1502d4326b..41c51e61b129 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -822,31 +822,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value.Value, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 6945fabbfb86..665b265fe8b5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -151,16 +151,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs index f3b89016ca8c..159542d8f5fa 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -146,7 +146,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 70c50972598e..d9dd4b26705c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -165,10 +165,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 0bde70e7d10c..a631d8e2d18a 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -145,7 +145,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 6f6db2d948a2..1bbcb2be323c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -145,7 +145,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index b16df5f518e0..30fe9ab86ca4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -826,103 +826,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index e6781b1c920b..d1a64f42f03b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -183,7 +183,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 2df46dde14c4..8d572546f439 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -187,7 +187,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 98b7ec6c5479..7496855fdf41 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -155,10 +155,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 925dfb5ff515..7ed6d4990ae9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -206,10 +206,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 4655c9cbb01e..c3b0e495f381 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -292,22 +292,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 9e34531ab9ba..2329eea4f42b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -144,16 +144,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs index 0ba836f7be5f..eef51661c9d7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -145,7 +145,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4e22fe711e2a..0ca2db559ebe 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -165,10 +165,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 9bc6bbaaf9b9..c4acb8c9c9bd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -214,10 +214,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index c216c04d6468..fda445a67fcd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -271,16 +271,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 90526549ac2b..02b04b791e8e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -145,7 +145,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2376786bd50e..40618643e1b0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -145,7 +145,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index d406287f4039..ea319b6748e3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -217,16 +217,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 2220371abceb..87e11e6999e3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -145,7 +145,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 09990a706a8c..d9971e56423d 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -165,10 +165,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 64b5da999734..429d211bd3f2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -145,7 +145,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs index f657f42be0ab..8d1f2aeb0db8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -239,19 +239,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value.Value, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 2858e8d86e69..883b72447c75 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -151,16 +151,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value, pkiNotificationtestID.Value.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index ba9cfa507092..dd795c454755 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -375,10 +375,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index dd205b2df274..dcbb486a9920 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -193,10 +193,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 209be6be1047..f9c0e035e424 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -145,7 +145,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 7881bc48f66e..1cf2977d186e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -208,16 +208,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs index 4d4a6167efc2..610909884b0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -340,22 +340,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 448c538f19d8..99b0abbaa0f5 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -185,13 +185,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index f268a60b3dcd..a5c2a2f12ef1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -118,10 +118,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index d8bb45eae944..33a3d6dece38 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -321,28 +321,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value, photoUrls.Value, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs index 3d7b78a18292..8922e573ab0f 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -193,10 +193,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index f1b8095c949f..bb695bd00b79 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -193,10 +193,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 790693a4ee03..8d7a57c59526 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -138,10 +138,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 6c679f4eadf0..3fbd226849a8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -203,10 +203,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index a5e6b6f451b2..fae1bd2034ce 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2077,136 +2077,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs index 7ed1ea210629..533d484093fd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -188,13 +188,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6870e58a4e5b..c44b71b7659b 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -191,19 +191,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value, varAbstract.Value, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 88ac872eba81..455206911cd3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -165,10 +165,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 7ac7e71cbc15..367680a1a300 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -145,7 +145,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index fc2982004601..d8eac4a684ce 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -151,16 +151,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs index 7a2dd62962fb..49b8e42ab4f9 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -193,10 +193,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 54079932ecbf..3fce1535c904 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -138,10 +138,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 52a892aeb9e1..fa998a6ecdd7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -193,10 +193,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 45ef5585c1a2..179b7c602d12 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -151,16 +151,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index b6bcd6886413..51235500e5cc 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -165,10 +165,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index d0d4298cab55..04b4e2a7feb8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -165,10 +165,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index db057bf9b74f..77efc5ff13d4 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index e7b97dd14788..d58df26387cf 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs index a28ece650979..39a686cd928e 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -241,16 +241,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index b2ef6e096109..1e931bd94731 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -145,7 +145,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index e367448c907f..5da58612b7ef 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -187,13 +187,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index 9e1ae42200c6..1ef3b35e8e9c 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -214,10 +214,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index afe9457b01a5..ed4592635d34 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -138,10 +138,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs index dd4db4f456f1..6371c3897a76 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -370,31 +370,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index c1abfbfd12c0..a862447465b1 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -178,16 +178,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index c6144e93c73d..4d6c01689db7 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -245,13 +245,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value, type); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 4ce3561c85ec..44b24d2dad67 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -218,7 +218,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index 1fbff79470fe..e398a5c02a61 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -167,10 +167,10 @@ public override NowGet200Response Read(ref Utf8JsonReader utf8JsonReader, Type t } if (now.IsSet && now.Value == null) - throw new ArgumentNullException(nameof(now), "Property is not nullable for class NowGet200Response."); + throw new JsonException("Property is not nullable for class NowGet200Response: now."); if (today.IsSet && today.Value == null) - throw new ArgumentNullException(nameof(today), "Property is not nullable for class NowGet200Response."); + throw new JsonException("Property is not nullable for class NowGet200Response: today."); return new NowGet200Response(now, today); } diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 4213420714a8..e39d6528c83e 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -145,16 +145,16 @@ public override Adult Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (children.IsSet && children.Value == null) - throw new ArgumentNullException(nameof(children), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: children."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: $_type."); return new Adult(children, firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs index f71f244652dc..ca9e960e944e 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -165,19 +165,19 @@ public override Child Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (age.IsSet && age.Value == null) - throw new ArgumentNullException(nameof(age), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: age."); if (boosterSeat.IsSet && boosterSeat.Value == null) - throw new ArgumentNullException(nameof(boosterSeat), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: boosterSeat."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: $_type."); return new Child(age, boosterSeat, firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs index e65419a3b600..59df30ef628a 100644 --- a/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net8/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -197,13 +197,13 @@ public override Person Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: $_type."); return new Person(firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index e6e5bf9b1853..62078fd772e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -147,7 +147,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 65dc4a02463e..65f3b8595ee9 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -147,7 +147,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 9ccac387b196..70eeaef7e581 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -196,7 +196,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index ba2d70c2fab5..2f7c7293e846 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -146,7 +146,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 7b0cc8bc8756..df0d290f06ee 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -146,7 +146,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index c7ad4a614836..f3a5418e2170 100644 --- a/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -195,7 +195,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs index 2fb20fd76ba8..1c125e463c07 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -145,7 +145,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index a7c053f968ff..434f74698e3b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -165,10 +165,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 2d355959392c..482589a9e5fc 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -286,25 +286,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 90faf3ed2ad0..371595944d7b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -175,13 +175,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 332e1e100ce2..57f797027126 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -185,13 +185,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 8559896f3b99..39231f0d396f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -215,13 +215,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index cc81766fcebe..90b875f38347 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -151,13 +151,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 9a6a9cb6326c..0deac145a207 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 1b911bc1d6c0..114ec6836190 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index e42133d4a724..07ecc2d530e9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -185,13 +185,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs index d887a45c931e..01833655a60c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index db3b3f2aabd1..e51da17d64bb 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -151,13 +151,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value.Value, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index da8a396dd208..bf65c1513d18 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs @@ -138,10 +138,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 57decedb097c..411ab5061c07 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -246,22 +246,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs index f3f27956ed3b..c5c9fa76f628 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -138,16 +138,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs index d78edc3ee72c..4dfc61b1b3e3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -158,13 +158,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 46fc753b3481..0d9b46a978e5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -141,13 +141,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 012fb4ea1848..9d988f7b5984 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -145,7 +145,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 71f28630fcd3..9f1ccf82a8cc 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -151,16 +151,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs index 8d25c498e494..4fb582c6484a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -134,16 +134,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 36182d9cbb8e..e3acfad07f60 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs @@ -138,10 +138,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 72a7565ec3c6..cd989244f843 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -151,7 +151,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 4e0d1370cc9a..2a867bcc4298 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -145,7 +145,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 5b8587c218e1..7726e8d5c4c2 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs @@ -131,22 +131,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value, descendantName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs index 82cc312ea062..bb2711891d54 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs @@ -131,22 +131,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value, confidentiality.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 5d01cd38ebbe..67c58e4ae967 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -138,16 +138,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index b1c4e76fe748..8e666f2d2867 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -205,10 +205,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs index c7187fd04841..3b32946bb5b9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs @@ -152,10 +152,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index ee70392a1686..79d09774978a 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -165,10 +165,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 780950460e89..02a65dd082b3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -298,31 +298,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value.Value, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 6945fabbfb86..665b265fe8b5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -151,16 +151,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs index 598363737a5e..6aa960a41e31 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -146,7 +146,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 74bfbfa1b1ec..82e18d1ef389 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -165,10 +165,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs index ab3a41f87790..42a29e21422b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -145,7 +145,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 5d64e47dc7f5..6c0af8514c82 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -145,7 +145,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index b489e77a1e15..fe45e4e488a8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -826,103 +826,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index a73048ec0ad1..5bd5f12a2603 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -183,7 +183,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 7071fe00f86d..e7a346898f1e 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -187,7 +187,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 98b7ec6c5479..7496855fdf41 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -155,10 +155,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 925dfb5ff515..7ed6d4990ae9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -206,10 +206,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 2f37dd2a61d9..38948d0c1ed3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -292,22 +292,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 9e34531ab9ba..2329eea4f42b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -144,16 +144,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs index b65cac7456c4..65bc7f611171 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -145,7 +145,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4b1007e9aaf5..3800055a0760 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -165,10 +165,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 9bc6bbaaf9b9..c4acb8c9c9bd 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Mammal.cs @@ -214,10 +214,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 463b714170dd..6e40d4275163 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -205,16 +205,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 57207f29ddb1..2814c36e50fa 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -145,7 +145,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index c3a43f3fc745..c3400316bbc5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -145,7 +145,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 1d5a4defe637..cc59be1b34d9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -217,16 +217,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index c1fbf300b336..2843e40b0049 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -145,7 +145,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index bb2913f5df66..38197b7ab613 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -165,10 +165,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index f4acaf49d8f1..66179ce2bd9c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -145,7 +145,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs index 19757fa1c327..8d2d529f0503 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -239,19 +239,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value.Value, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 2858e8d86e69..883b72447c75 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -151,16 +151,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value, pkiNotificationtestID.Value.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 0c4818c0bff4..77edeb3e45e0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -375,10 +375,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index dd205b2df274..dcbb486a9920 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs @@ -193,10 +193,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 428f234deaeb..0e5d10a95ada 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -145,7 +145,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index d8bd9f36ea39..9ecaccc0bb1d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -208,16 +208,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs index 66edef8216f7..32ecad789af6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -251,22 +251,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index 93be59d99690..5e4cea2ad890 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -185,13 +185,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index f268a60b3dcd..a5c2a2f12ef1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -118,10 +118,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs index f60a0987b590..bad8f48861c7 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -232,28 +232,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value, photoUrls.Value, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs index 3d7b78a18292..8922e573ab0f 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Pig.cs @@ -193,10 +193,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index f1b8095c949f..bb695bd00b79 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -193,10 +193,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 790693a4ee03..8d7a57c59526 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -138,10 +138,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index ddd15217fc1f..edcaca516e33 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -203,10 +203,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index eeda5ef0fcc7..2007d33c8f9b 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -895,136 +895,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs index b57d0b4c7e8e..62bc561934d5 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -188,13 +188,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs index c4b5b9636bb3..a9c51b8a1ec6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -191,19 +191,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value, varAbstract.Value, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 9b73fae206ff..5e3a5137cb38 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -165,10 +165,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 22702cfaa178..2b804f7bd98c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -145,7 +145,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index fc2982004601..d8eac4a684ce 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -151,16 +151,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs index 7a2dd62962fb..49b8e42ab4f9 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Shape.cs @@ -193,10 +193,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 54079932ecbf..3fce1535c904 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -138,10 +138,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 52a892aeb9e1..fa998a6ecdd7 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -193,10 +193,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 45ef5585c1a2..179b7c602d12 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -151,16 +151,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 9b3bfdab8bcf..c24374910fa1 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -165,10 +165,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 9ac1082f742a..1106d4a4e7ee 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -165,10 +165,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b48698e26e70..36a4085251e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 4d1c9e06a24f..e6726b227d81 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs index c5b9db5913dd..16abb0fa533d 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -168,16 +168,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 5bd2ec9a6bba..a6ad15da33a2 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -145,7 +145,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 5abf98b1e65b..beb1ab579d11 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -187,13 +187,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index 9e1ae42200c6..1ef3b35e8e9c 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Triangle.cs @@ -214,10 +214,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index afe9457b01a5..ed4592635d34 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -138,10 +138,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs index 90deb77dbaaa..af6279d66395 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -370,31 +370,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 1cdb5bad9dd1..5d5e1b5421b6 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -178,16 +178,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 67b6d90eb1d7..69ee715e38be 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -158,13 +158,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value, type); } diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index ad7eadb1b479..ee7e3eecf739 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -145,7 +145,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs index d43c6780ca28..ca8cfb1a062d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs @@ -147,7 +147,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 23f5c4b3a85d..4cb0bfbebdc6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -167,10 +167,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ad641f68f2e9..9e6732bcbc10 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -288,25 +288,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs index 6344d530cd6e..457d433df3bb 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs @@ -177,13 +177,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs index 70585c8acf5b..eae8aa1c7bfd 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -187,13 +187,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs index edd6e65f1f41..9627141cf147 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs @@ -217,13 +217,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs index a98f5bd8787f..f21dcb8014b1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs @@ -153,13 +153,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value!, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 509645c3f350..522624a5ce1d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -147,7 +147,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 9d5c27336962..67bbfe87647d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -147,7 +147,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs index 14d7950c4b6f..a01ecacdd72b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -187,13 +187,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs index 0a7d794e23fc..ca7e413ceeb6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs @@ -147,7 +147,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs index 1973db4c4bed..96a98e9e2f69 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs @@ -153,13 +153,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value!.Value!, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs index 8dbfb7552b5f..001ce4a14655 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs @@ -140,10 +140,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs index 68e8220438eb..85b6baa2d754 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs @@ -248,22 +248,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index 0f47bd35e784..05ee372584c4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -140,16 +140,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs index d411efbb83bd..63a943b1ca32 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs @@ -160,13 +160,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs index d7c5a4cd96ec..506651c5b421 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs @@ -202,13 +202,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs index 16551511b256..ba22c38d013f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs @@ -147,7 +147,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index e1e504b538e1..bda6577d02c2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -153,16 +153,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs index 260d78873e2e..1b77996e10c2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -195,16 +195,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs index ed6bc6534338..fb8adbaeb62f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs @@ -140,10 +140,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs index f39aa601716f..bde9eedbf899 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -153,7 +153,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 5e4782e9741b..edf3580a5006 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -147,7 +147,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs index 68a2f65c9aff..d0913992d157 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs @@ -140,22 +140,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value!, descendantName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs index 5a130166a0b1..5cd06903b366 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs @@ -140,22 +140,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value!, confidentiality.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index b8435f95759c..d138df0d6905 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -140,16 +140,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs index cce96329e588..678e0ed5419d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs @@ -207,10 +207,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs index a81af5d8181b..4c21cc792a55 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs @@ -154,10 +154,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs index 05f5e7db1d24..087a026beaaf 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -306,10 +306,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs index 62c8f51ce807..2eefc1ef6ba2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs @@ -824,31 +824,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value!.Value!, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 407e33a7b6f5..c30ec912d755 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -153,16 +153,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs index 6608c8f2c0e0..d5eb5d549ea6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs @@ -148,7 +148,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d8837421dcac..7e388fa26fa2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -167,10 +167,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs index 4b75918a83d5..f410f110f43c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs @@ -147,7 +147,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index baa4b149818a..cfc038f14e58 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -147,7 +147,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs index 1badd1c0d948..3c0a18995dc9 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs @@ -828,103 +828,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs index f902f78034c4..363808c467e3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs @@ -185,7 +185,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs index 1eccb13e9003..57ccb03380ab 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs @@ -189,7 +189,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 4477d4279465..b5365a68d6ba 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -157,10 +157,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 1a446ca46e5a..103d547b76d2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -208,10 +208,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 82b78a3e00f9..fc3ff4a253e9 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -294,22 +294,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index b211cf0586b1..466c62aea797 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -146,16 +146,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs index b8a8a257d0d2..51f16d706697 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs @@ -147,7 +147,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 70963bef2fc5..91d2b5fb1c3c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -167,10 +167,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs index fc906f76d9ff..05a5e5d55604 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs @@ -216,10 +216,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs index 64474ff0d16d..c232c64f65da 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs @@ -273,16 +273,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 48eca2b1e0b8..f5f988259cdf 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -147,7 +147,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs index e5c9f6f2f2f7..03581cdcfd40 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -147,7 +147,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 1cef2917ba78..840ed7657912 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -219,16 +219,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs index 77c1611f8f80..b385cf0dd9ee 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -147,7 +147,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs index ff4080153aea..bf0f3e968c36 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs @@ -167,10 +167,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs index b32d7f964146..4b654356987a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs @@ -147,7 +147,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs index 8fd568be1a6b..73f861dcc6cc 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs @@ -241,19 +241,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value!.Value!, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 10c8125b1068..c8a57aa7547f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -153,16 +153,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value!, pkiNotificationtestID.Value!.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs index d1327d7b480f..96cbd8c1fcca 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs @@ -377,10 +377,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs index b257d25ab62f..f8120a285900 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs @@ -195,10 +195,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs index a463ed4572d3..25105240d38d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -147,7 +147,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 03727598207c..5b4319dbc5ef 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -210,16 +210,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs index ee4d0c85d40a..52073abb4d53 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs @@ -342,22 +342,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs index 686aa2d77797..fe4f0786dbaf 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -187,13 +187,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs index 70e91c22627e..8d83f726bb64 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs @@ -120,10 +120,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs index 5c16160c5db9..84a01f8eeae3 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs @@ -323,28 +323,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value!, photoUrls.Value!, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs index 217360908bd8..fa25f86f0451 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs @@ -195,10 +195,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs index 258df7403653..f3ef0fda6d96 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -195,10 +195,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index bbd3a56b31ed..56c9dfeac6ba 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -140,10 +140,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 3b1999efb42d..72ccb4531a7d 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -205,10 +205,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs index 1912f3c24ebf..186dfc468ead 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2079,136 +2079,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value!.Value!, requiredNotnullableArrayOfString.Value!, requiredNotnullableBooleanProp.Value!.Value!, requiredNotnullableDatetimeProp.Value!.Value!, requiredNotnullableEnumInteger.Value!.Value!, requiredNotnullableEnumIntegerOnly.Value!.Value!, requiredNotnullableEnumString.Value!.Value!, requiredNotnullableOuterEnumDefaultValue.Value!.Value!, requiredNotnullableStringProp.Value!, requiredNotnullableUuid.Value!.Value!, requiredNotnullableintegerProp.Value!.Value!, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value!, requiredNullableBooleanProp.Value!, requiredNullableDateProp.Value!, requiredNullableDatetimeProp.Value!, requiredNullableEnumInteger.Value!, requiredNullableEnumIntegerOnly.Value!, requiredNullableEnumString.Value!, requiredNullableIntegerProp.Value!, requiredNullableOuterEnumDefaultValue.Value!, requiredNullableStringProp.Value!, requiredNullableUuid.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index a6bef2efe103..fe06dd89d4c9 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -190,13 +190,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs index fd9446247331..12c679cd5146 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs @@ -193,19 +193,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value!, varAbstract.Value!, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs index ac6dd43ef0b2..056240574ca5 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -167,10 +167,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 55d774689f49..264d24e0505b 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -147,7 +147,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index f1779050584b..fd0f1d1bcba9 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -153,16 +153,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs index 22f37a48e620..9946323dcdbe 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs @@ -195,10 +195,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs index cb375197e488..4404aab7f1b1 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -140,10 +140,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 4df1e6983ad1..665942a5f44f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -195,10 +195,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 0034604725d0..c0ba8c4782be 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -153,16 +153,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs index 81c58c98aa68..026f410268fe 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -167,10 +167,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs index a16ea726bfff..0702b6e968f2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs @@ -167,10 +167,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 182412d38e32..61b664997f85 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -147,7 +147,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 97b4b270f1c9..54b592a8f5a4 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -147,7 +147,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs index 5b568b36e9ec..e75e8fbaeb7c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -243,16 +243,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 07d98ed51393..3e8d19707387 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -147,7 +147,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index d168aff8b9c2..f8a9abc06052 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -189,13 +189,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs index 0be5259f1ebe..c3d21195968a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs @@ -216,10 +216,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs index c97244ab95ff..358a0e2aa20c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -140,10 +140,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs index c6a4d2cddb86..ce498d7d327c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs @@ -372,31 +372,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs index 74e3afd8dbf8..d0099756b15c 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs @@ -180,16 +180,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value!, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs index f6faea2fd5ed..fae5958200e6 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs @@ -247,13 +247,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value!, type); } diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 796310e1783f..cf5d2bcb6a8f 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -220,7 +220,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs index e6e5bf9b1853..62078fd772e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -147,7 +147,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 65dc4a02463e..65f3b8595ee9 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -147,7 +147,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index af45459bafc7..995c0a87ad8b 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -213,7 +213,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Orange.cs b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Orange.cs index 793f5553239f..eea08050f18f 100644 --- a/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Orange.cs +++ b/samples/client/petstore/csharp/generichost/net8/OneOf/src/Org.OpenAPITools/Model/Orange.cs @@ -147,7 +147,7 @@ public override Orange Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class Orange."); + throw new JsonException("Property is not nullable for class Orange: sweet."); return new Orange(sweet); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 2fb20fd76ba8..1c125e463c07 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -145,7 +145,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index a7c053f968ff..434f74698e3b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -165,10 +165,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 2d355959392c..482589a9e5fc 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -286,25 +286,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 90faf3ed2ad0..371595944d7b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -175,13 +175,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 332e1e100ce2..57f797027126 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -185,13 +185,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 8559896f3b99..39231f0d396f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -215,13 +215,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index cc81766fcebe..90b875f38347 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -151,13 +151,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 9a6a9cb6326c..0deac145a207 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 1b911bc1d6c0..114ec6836190 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index e42133d4a724..07ecc2d530e9 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -185,13 +185,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d887a45c931e..01833655a60c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index db3b3f2aabd1..e51da17d64bb 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -151,13 +151,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value.Value, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index da8a396dd208..bf65c1513d18 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -138,10 +138,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 57decedb097c..411ab5061c07 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -246,22 +246,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs index f3f27956ed3b..c5c9fa76f628 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -138,16 +138,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs index d78edc3ee72c..4dfc61b1b3e3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -158,13 +158,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index d5e2a907d867..fa6b06132a0c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -200,13 +200,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 012fb4ea1848..9d988f7b5984 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -145,7 +145,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 71f28630fcd3..9f1ccf82a8cc 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -151,16 +151,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 790b30d0598c..fad896e8c944 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -193,16 +193,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 36182d9cbb8e..e3acfad07f60 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -138,10 +138,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 72a7565ec3c6..cd989244f843 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -151,7 +151,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 4e0d1370cc9a..2a867bcc4298 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -145,7 +145,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 00e11bca0df2..ef4fa867e899 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs @@ -138,22 +138,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value, descendantName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index 3ad11787dcb3..d83152dfa6b7 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs @@ -138,22 +138,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value, confidentiality.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 5d01cd38ebbe..67c58e4ae967 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -138,16 +138,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index b1c4e76fe748..8e666f2d2867 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -205,10 +205,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs index c7187fd04841..3b32946bb5b9 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs @@ -152,10 +152,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 231e6fbbf6bc..11f9cab173bd 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -304,10 +304,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 0aaa3e6fe0aa..bd7ccf486fc3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -822,31 +822,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value.Value, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 6945fabbfb86..665b265fe8b5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -151,16 +151,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs index 598363737a5e..6aa960a41e31 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -146,7 +146,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 74bfbfa1b1ec..82e18d1ef389 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -165,10 +165,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs index ab3a41f87790..42a29e21422b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -145,7 +145,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 5d64e47dc7f5..6c0af8514c82 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -145,7 +145,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index b489e77a1e15..fe45e4e488a8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -826,103 +826,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index a73048ec0ad1..5bd5f12a2603 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -183,7 +183,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 7071fe00f86d..e7a346898f1e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -187,7 +187,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 98b7ec6c5479..7496855fdf41 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -155,10 +155,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 925dfb5ff515..7ed6d4990ae9 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -206,10 +206,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 2f37dd2a61d9..38948d0c1ed3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -292,22 +292,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 9e34531ab9ba..2329eea4f42b 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -144,16 +144,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs index b65cac7456c4..65bc7f611171 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -145,7 +145,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4b1007e9aaf5..3800055a0760 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -165,10 +165,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 9bc6bbaaf9b9..c4acb8c9c9bd 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -214,10 +214,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index b5cdc783088c..831d190dfa8d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -271,16 +271,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 57207f29ddb1..2814c36e50fa 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -145,7 +145,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index c3a43f3fc745..c3400316bbc5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -145,7 +145,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 1d5a4defe637..cc59be1b34d9 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -217,16 +217,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index c1fbf300b336..2843e40b0049 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -145,7 +145,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index bb2913f5df66..38197b7ab613 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -165,10 +165,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index f4acaf49d8f1..66179ce2bd9c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -145,7 +145,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs index 19757fa1c327..8d2d529f0503 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -239,19 +239,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value.Value, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 2858e8d86e69..883b72447c75 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -151,16 +151,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value, pkiNotificationtestID.Value.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 0c4818c0bff4..77edeb3e45e0 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -375,10 +375,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index dd205b2df274..dcbb486a9920 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -193,10 +193,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 428f234deaeb..0e5d10a95ada 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -145,7 +145,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index d8bd9f36ea39..9ecaccc0bb1d 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -208,16 +208,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs index d3f99122b153..f678fe600e84 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -340,22 +340,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 93be59d99690..5e4cea2ad890 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -185,13 +185,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index f268a60b3dcd..a5c2a2f12ef1 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -118,10 +118,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 6d3d8121e68c..599d7d612422 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -321,28 +321,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value, photoUrls.Value, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs index 3d7b78a18292..8922e573ab0f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -193,10 +193,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index f1b8095c949f..bb695bd00b79 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -193,10 +193,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 790693a4ee03..8d7a57c59526 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -138,10 +138,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index ddd15217fc1f..edcaca516e33 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -203,10 +203,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 50d69fccab91..779f1eb4f318 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2077,136 +2077,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs index b57d0b4c7e8e..62bc561934d5 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -188,13 +188,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs index c4b5b9636bb3..a9c51b8a1ec6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -191,19 +191,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value, varAbstract.Value, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 9b73fae206ff..5e3a5137cb38 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -165,10 +165,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 22702cfaa178..2b804f7bd98c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -145,7 +145,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index fc2982004601..d8eac4a684ce 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -151,16 +151,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs index 7a2dd62962fb..49b8e42ab4f9 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -193,10 +193,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 54079932ecbf..3fce1535c904 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -138,10 +138,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 52a892aeb9e1..fa998a6ecdd7 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -193,10 +193,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 45ef5585c1a2..179b7c602d12 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -151,16 +151,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 9b3bfdab8bcf..c24374910fa1 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -165,10 +165,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 9ac1082f742a..1106d4a4e7ee 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -165,10 +165,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b48698e26e70..36a4085251e4 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 4d1c9e06a24f..e6726b227d81 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs index a28ece650979..39a686cd928e 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -241,16 +241,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 5bd2ec9a6bba..a6ad15da33a2 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -145,7 +145,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 5abf98b1e65b..beb1ab579d11 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -187,13 +187,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index 9e1ae42200c6..1ef3b35e8e9c 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -214,10 +214,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index afe9457b01a5..ed4592635d34 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -138,10 +138,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs index 90deb77dbaaa..af6279d66395 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -370,31 +370,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 1cdb5bad9dd1..5d5e1b5421b6 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -178,16 +178,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 8bd6f70f0a95..351e31c7bec1 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -245,13 +245,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value, type); } diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 0f0d25e333db..2614b6be623f 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -218,7 +218,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs index 14a5655c8023..4e8cdbade02e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs @@ -148,7 +148,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 06c18ced2a1c..ea78057f2157 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -168,10 +168,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index d4e0bd11b830..033acfcc2f86 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -289,25 +289,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs index 6861539d48cb..f17ca142e62e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs @@ -178,13 +178,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs index 6895b23c9654..7fe2badda61a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -188,13 +188,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs index ed26f278fc46..28e983f8c1f7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs @@ -218,13 +218,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs index 95c14d25d542..6bf3eafa9dde 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs @@ -154,13 +154,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value!, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 270d77309df1..31d9c34c847b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -148,7 +148,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c2fbcd6a7e57..162b12039c99 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -148,7 +148,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs index 877795d5cfd4..554aabd49342 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -188,13 +188,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs index fd95bd629bbe..67d43b51ee6f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs @@ -148,7 +148,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs index afdff1b19be1..1be1967bbf30 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs @@ -154,13 +154,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value!.Value!, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs index d2b0f9fc8e45..a0e29952cf6b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs @@ -141,10 +141,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs index 26ea3730fba7..88ffeedd57e2 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs @@ -249,22 +249,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index c44fc9083169..e4b3cccaac9a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -141,16 +141,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs index 9795a7beec1b..1201a731b6e7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs @@ -161,13 +161,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs index 77c923435187..15382bf6aba3 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs @@ -203,13 +203,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs index 90236769cb4a..b90a63c9080f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs @@ -148,7 +148,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index d1828daed8ba..ce569aa8a223 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -154,16 +154,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs index 7c1c3f7fe287..6ea89bfa46cf 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -196,16 +196,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs index 94e9213fe899..c75866f77a37 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs @@ -141,10 +141,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 60ef9165d975..e6886061ce16 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -154,7 +154,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 4b96563e3461..f38c40855cf9 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -148,7 +148,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs index 48aba268c5b9..4b36c6fb200e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs @@ -141,22 +141,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value!, descendantName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs index aae60577a78f..4060b8ea853e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs @@ -141,22 +141,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value!, confidentiality.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index f43fe465b65a..16dc36126f60 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -141,16 +141,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs index d26192a1adba..0204ffd11b67 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs @@ -208,10 +208,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs index 74cb49595291..18696b473eaa 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs @@ -155,10 +155,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs index 5c6eccf09721..fb02ff8e8d41 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -307,10 +307,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs index 57e8cd61d373..4e67307c599d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs @@ -825,31 +825,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value!.Value!, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index a4d6ad4c2f68..b3efb43120f2 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -154,16 +154,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs index c26fe4f172ce..5b777b632272 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/File.cs @@ -149,7 +149,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 77eeacd1bfce..c77f93cc5dda 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -168,10 +168,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs index a26bca0b15d4..9bc633fb1347 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs @@ -148,7 +148,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 23d6edaccb8c..ed0f645778c7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -148,7 +148,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs index bc64a259b1eb..5e2b0098cd89 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs @@ -829,103 +829,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs index b9adf9d71cc8..9bef81f9165b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs @@ -186,7 +186,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs index a2198a7ec32a..319c972914d5 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs @@ -190,7 +190,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 831bc16de8c2..a561b03d9a80 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -158,10 +158,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 098874540247..ef6d3ab7c298 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -209,10 +209,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index f14013f65705..8428d73f1f4d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -295,22 +295,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 261267b6c02f..76f823c04feb 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -147,16 +147,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs index d6cd61b8668e..d2428a617391 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/List.cs @@ -148,7 +148,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 3de1c9b7ebc5..5089070ed31b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -168,10 +168,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs index a6fd263ff981..02f86812548c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs @@ -217,10 +217,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs index a8ff51c976de..be29a234a40f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs @@ -274,16 +274,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 93b19a688f74..b161e262d82e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -148,7 +148,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs index f79216144534..88bbc61728d0 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -148,7 +148,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2a2d05afb5bf..00c741fe8230 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -220,16 +220,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs index e9036f7546d3..e7b51c028c54 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -148,7 +148,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs index 4538cb6884df..6f113f248688 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs @@ -168,10 +168,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs index 357ce5b2d143..aa8b7f0e664c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs @@ -148,7 +148,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs index 37f41d119044..a57af8984382 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs @@ -242,19 +242,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value!.Value!, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 358f13e8de5f..49af3bbc0011 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -154,16 +154,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value!, pkiNotificationtestID.Value!.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs index 5bf7c08c2823..4c37377b8b56 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs @@ -378,10 +378,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs index f768d56b98d9..650fa75d3470 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs @@ -196,10 +196,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs index b051d11b1761..f3b39743e06c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -148,7 +148,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index e041d875bc51..181ca33013a1 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -211,16 +211,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs index 5a9d1362547d..2a4479bb6892 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs @@ -343,22 +343,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs index 4a94f026f474..611702e0a740 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -188,13 +188,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs index 3cac06dda885..b5a9f269d06a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs @@ -121,10 +121,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs index 4e7c71f8a59d..2f834d4ad27e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs @@ -324,28 +324,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value!, photoUrls.Value!, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs index 5640fd1d9c8d..4e3ca083f0e0 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs @@ -196,10 +196,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs index eabed88718f8..07a6da257acc 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -196,10 +196,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index ac2b8e61cd67..6da445395d9b 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -141,10 +141,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 8a93f3022a91..721f02f2e915 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -206,10 +206,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs index 599aa94d5e5e..b876a0dfebb4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2080,136 +2080,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value!.Value!, requiredNotnullableArrayOfString.Value!, requiredNotnullableBooleanProp.Value!.Value!, requiredNotnullableDatetimeProp.Value!.Value!, requiredNotnullableEnumInteger.Value!.Value!, requiredNotnullableEnumIntegerOnly.Value!.Value!, requiredNotnullableEnumString.Value!.Value!, requiredNotnullableOuterEnumDefaultValue.Value!.Value!, requiredNotnullableStringProp.Value!, requiredNotnullableUuid.Value!.Value!, requiredNotnullableintegerProp.Value!.Value!, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value!, requiredNullableBooleanProp.Value!, requiredNullableDateProp.Value!, requiredNullableDatetimeProp.Value!, requiredNullableEnumInteger.Value!, requiredNullableEnumIntegerOnly.Value!, requiredNullableEnumString.Value!, requiredNullableIntegerProp.Value!, requiredNullableOuterEnumDefaultValue.Value!, requiredNullableStringProp.Value!, requiredNullableUuid.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 5e2d71377d97..bbeabbb4a288 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -191,13 +191,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs index 36c27ec413ed..a939792e9831 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs @@ -194,19 +194,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value!, varAbstract.Value!, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs index bbaefb23e8b7..1dd908069a7d 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -168,10 +168,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index e292a138c48e..af7998bdab26 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -148,7 +148,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 9e866915b32f..fd5f5a3f6e69 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -154,16 +154,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs index 4c152f2ef2fe..2a1135dcf33c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs @@ -196,10 +196,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs index 5aedd501c226..2d1a8d444eba 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -141,10 +141,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs index b18fbb1d936e..4ff352dcff8f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -196,10 +196,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index e7ed21a8c3ca..7de7001d7e74 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -154,16 +154,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs index edf8a9edcacf..5d8916e01495 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -168,10 +168,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs index a5f86d17a002..9d3e01cfe13f 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs @@ -168,10 +168,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 508388831ad1..a77e39fb335a 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -148,7 +148,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index cdd78842b091..fa3bdcca712c 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -148,7 +148,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs index 7410185d15aa..c55f09c24ad7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -244,16 +244,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 41fcb61c7c76..79f0d4ead06e 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -148,7 +148,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index eee7fb7736e2..ed2c4f9b1ee4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -190,13 +190,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs index 5e994d5c98e6..a136888f90d4 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs @@ -217,10 +217,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs index 20b576d5efbd..bacb230b71b7 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -141,10 +141,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs index 2589af030b24..66da53d722ec 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/User.cs @@ -373,31 +373,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs index a55ad54be20d..29ec64728866 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs @@ -181,16 +181,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value!, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs index 143976f6b272..fa37280bcd17 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs @@ -248,13 +248,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value!, type); } diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 733adac3c5c4..184ee862a155 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -221,7 +221,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index f8d7a66197ae..43cfd5298ad3 100644 --- a/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net8/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -169,10 +169,10 @@ public override NowGet200Response Read(ref Utf8JsonReader utf8JsonReader, Type t } if (now.IsSet && now.Value == null) - throw new ArgumentNullException(nameof(now), "Property is not nullable for class NowGet200Response."); + throw new JsonException("Property is not nullable for class NowGet200Response: now."); if (today.IsSet && today.Value == null) - throw new ArgumentNullException(nameof(today), "Property is not nullable for class NowGet200Response."); + throw new JsonException("Property is not nullable for class NowGet200Response: today."); return new NowGet200Response(now, today); } diff --git a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs index 4213420714a8..e39d6528c83e 100644 --- a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs +++ b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Adult.cs @@ -145,16 +145,16 @@ public override Adult Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (children.IsSet && children.Value == null) - throw new ArgumentNullException(nameof(children), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: children."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Adult."); + throw new JsonException("Property is not nullable for class Adult: $_type."); return new Adult(children, firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs index f71f244652dc..ca9e960e944e 100644 --- a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs +++ b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Child.cs @@ -165,19 +165,19 @@ public override Child Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (age.IsSet && age.Value == null) - throw new ArgumentNullException(nameof(age), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: age."); if (boosterSeat.IsSet && boosterSeat.Value == null) - throw new ArgumentNullException(nameof(boosterSeat), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: boosterSeat."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Child."); + throw new JsonException("Property is not nullable for class Child: $_type."); return new Child(age, boosterSeat, firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs index e65419a3b600..59df30ef628a 100644 --- a/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs +++ b/samples/client/petstore/csharp/generichost/net9/AllOf/src/Org.OpenAPITools/Model/Person.cs @@ -197,13 +197,13 @@ public override Person Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: firstName."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: lastName."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Person."); + throw new JsonException("Property is not nullable for class Person: $_type."); return new Person(firstName, lastName); } diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs index e6e5bf9b1853..62078fd772e4 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Apple.cs @@ -147,7 +147,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs index 65dc4a02463e..65f3b8595ee9 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Banana.cs @@ -147,7 +147,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs index 9ccac387b196..70eeaef7e581 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -196,7 +196,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs index ba2d70c2fab5..2f7c7293e846 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Apple.cs @@ -146,7 +146,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs index 7b0cc8bc8756..df0d290f06ee 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Banana.cs @@ -146,7 +146,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs index c7ad4a614836..f3a5418e2170 100644 --- a/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/AnyOfNoCompare/src/Org.OpenAPITools/Model/Fruit.cs @@ -195,7 +195,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Activity.cs index 2fb20fd76ba8..1c125e463c07 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Activity.cs @@ -145,7 +145,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index a7c053f968ff..434f74698e3b 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -165,10 +165,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 2d355959392c..482589a9e5fc 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -286,25 +286,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Animal.cs index 90faf3ed2ad0..371595944d7b 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Animal.cs @@ -175,13 +175,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs index 332e1e100ce2..57f797027126 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -185,13 +185,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Apple.cs index 8559896f3b99..39231f0d396f 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Apple.cs @@ -215,13 +215,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs index cc81766fcebe..90b875f38347 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/AppleReq.cs @@ -151,13 +151,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 9a6a9cb6326c..0deac145a207 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 1b911bc1d6c0..114ec6836190 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs index e42133d4a724..07ecc2d530e9 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -185,13 +185,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Banana.cs index d887a45c931e..01833655a60c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs index db3b3f2aabd1..e51da17d64bb 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BananaReq.cs @@ -151,13 +151,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value.Value, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs index da8a396dd208..bf65c1513d18 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/BasquePig.cs @@ -138,10 +138,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs index 57decedb097c..411ab5061c07 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Capitalization.cs @@ -246,22 +246,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs index f3f27956ed3b..c5c9fa76f628 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Cat.cs @@ -138,16 +138,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Category.cs index d78edc3ee72c..4dfc61b1b3e3 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Category.cs @@ -158,13 +158,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs index 46fc753b3481..0d9b46a978e5 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ChildCat.cs @@ -141,13 +141,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs index 012fb4ea1848..9d988f7b5984 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ClassModel.cs @@ -145,7 +145,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 71f28630fcd3..9f1ccf82a8cc 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -151,16 +151,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs index 8d25c498e494..4fb582c6484a 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -134,16 +134,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs index 36182d9cbb8e..e3acfad07f60 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DanishPig.cs @@ -138,10 +138,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 72a7565ec3c6..cd989244f843 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -151,7 +151,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 4e0d1370cc9a..2a867bcc4298 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -145,7 +145,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs index 5b8587c218e1..7726e8d5c4c2 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant1.cs @@ -131,22 +131,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value, descendantName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs index 82cc312ea062..bb2711891d54 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Descendant2.cs @@ -131,22 +131,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value, confidentiality.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs index 5d01cd38ebbe..67c58e4ae967 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Dog.cs @@ -138,16 +138,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Drawing.cs index b1c4e76fe748..8e666f2d2867 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Drawing.cs @@ -205,10 +205,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs index c7187fd04841..3b32946bb5b9 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EntityBase.cs @@ -152,10 +152,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs index ee70392a1686..79d09774978a 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -165,10 +165,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs index 780950460e89..02a65dd082b3 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EnumTest.cs @@ -298,31 +298,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value.Value, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 6945fabbfb86..665b265fe8b5 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -151,16 +151,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/File.cs index 598363737a5e..6aa960a41e31 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/File.cs @@ -146,7 +146,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 74bfbfa1b1ec..82e18d1ef389 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -165,10 +165,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Foo.cs index ab3a41f87790..42a29e21422b 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Foo.cs @@ -145,7 +145,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 5d64e47dc7f5..6c0af8514c82 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -145,7 +145,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs index b489e77a1e15..fe45e4e488a8 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/FormatTest.cs @@ -826,103 +826,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Fruit.cs index a73048ec0ad1..5bd5f12a2603 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Fruit.cs @@ -183,7 +183,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs index 7071fe00f86d..e7a346898f1e 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GmFruit.cs @@ -187,7 +187,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 98b7ec6c5479..7496855fdf41 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -155,10 +155,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 925dfb5ff515..7ed6d4990ae9 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -206,10 +206,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 2f37dd2a61d9..38948d0c1ed3 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -292,22 +292,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 9e34531ab9ba..2329eea4f42b 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -144,16 +144,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/List.cs index b65cac7456c4..65bc7f611171 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/List.cs @@ -145,7 +145,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4b1007e9aaf5..3800055a0760 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -165,10 +165,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Mammal.cs index 9bc6bbaaf9b9..c4acb8c9c9bd 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Mammal.cs @@ -214,10 +214,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MapTest.cs index 463b714170dd..6e40d4275163 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MapTest.cs @@ -205,16 +205,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 57207f29ddb1..2814c36e50fa 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -145,7 +145,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs index c3a43f3fc745..c3400316bbc5 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -145,7 +145,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 1d5a4defe637..cc59be1b34d9 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -217,16 +217,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs index c1fbf300b336..2843e40b0049 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -145,7 +145,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs index bb2913f5df66..38197b7ab613 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Model200Response.cs @@ -165,10 +165,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs index f4acaf49d8f1..66179ce2bd9c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ModelClient.cs @@ -145,7 +145,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Name.cs index 19757fa1c327..8d2d529f0503 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Name.cs @@ -239,19 +239,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value.Value, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 2858e8d86e69..883b72447c75 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -151,16 +151,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value, pkiNotificationtestID.Value.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs index 0c4818c0bff4..77edeb3e45e0 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableClass.cs @@ -375,10 +375,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs index dd205b2df274..dcbb486a9920 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NullableShape.cs @@ -193,10 +193,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs index 428f234deaeb..0e5d10a95ada 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -145,7 +145,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index d8bd9f36ea39..9ecaccc0bb1d 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -208,16 +208,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Order.cs index 66edef8216f7..32ecad789af6 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Order.cs @@ -251,22 +251,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs index 93be59d99690..5e4cea2ad890 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -185,13 +185,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs index f268a60b3dcd..a5c2a2f12ef1 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ParentPet.cs @@ -118,10 +118,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pet.cs index f60a0987b590..bad8f48861c7 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pet.cs @@ -232,28 +232,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value, photoUrls.Value, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pig.cs index 3d7b78a18292..8922e573ab0f 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Pig.cs @@ -193,10 +193,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs index f1b8095c949f..bb695bd00b79 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -193,10 +193,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 790693a4ee03..8d7a57c59526 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -138,10 +138,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index ddd15217fc1f..edcaca516e33 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -203,10 +203,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs index eeda5ef0fcc7..2007d33c8f9b 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -895,136 +895,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs index b57d0b4c7e8e..62bc561934d5 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Result.cs @@ -188,13 +188,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Return.cs index c4b5b9636bb3..a9c51b8a1ec6 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Return.cs @@ -191,19 +191,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value, varAbstract.Value, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 9b73fae206ff..5e3a5137cb38 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -165,10 +165,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 22702cfaa178..2b804f7bd98c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -145,7 +145,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index fc2982004601..d8eac4a684ce 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -151,16 +151,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Shape.cs index 7a2dd62962fb..49b8e42ab4f9 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Shape.cs @@ -193,10 +193,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs index 54079932ecbf..3fce1535c904 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -138,10 +138,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 52a892aeb9e1..fa998a6ecdd7 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -193,10 +193,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 45ef5585c1a2..179b7c602d12 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -151,16 +151,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs index 9b3bfdab8bcf..c24374910fa1 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -165,10 +165,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Tag.cs index 9ac1082f742a..1106d4a4e7ee 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Tag.cs @@ -165,10 +165,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b48698e26e70..36a4085251e4 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 4d1c9e06a24f..e6726b227d81 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs index c5b9db5913dd..16abb0fa533d 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -168,16 +168,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 5bd2ec9a6bba..a6ad15da33a2 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -145,7 +145,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs index 5abf98b1e65b..beb1ab579d11 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TestResult.cs @@ -187,13 +187,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Triangle.cs index 9e1ae42200c6..1ef3b35e8e9c 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Triangle.cs @@ -214,10 +214,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs index afe9457b01a5..ed4592635d34 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -138,10 +138,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/User.cs index 90deb77dbaaa..af6279d66395 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/User.cs @@ -370,31 +370,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Whale.cs index 1cdb5bad9dd1..5d5e1b5421b6 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Whale.cs @@ -178,16 +178,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Zebra.cs index 67b6d90eb1d7..69ee715e38be 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/Zebra.cs @@ -158,13 +158,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value, type); } diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index ad7eadb1b479..ee7e3eecf739 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -145,7 +145,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs index d43c6780ca28..ca8cfb1a062d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Activity.cs @@ -147,7 +147,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 23f5c4b3a85d..4cb0bfbebdc6 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -167,10 +167,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index ad641f68f2e9..9e6732bcbc10 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -288,25 +288,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs index 6344d530cd6e..457d433df3bb 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Animal.cs @@ -177,13 +177,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs index 70585c8acf5b..eae8aa1c7bfd 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -187,13 +187,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs index edd6e65f1f41..9627141cf147 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Apple.cs @@ -217,13 +217,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs index a98f5bd8787f..f21dcb8014b1 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/AppleReq.cs @@ -153,13 +153,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value!, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 509645c3f350..522624a5ce1d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -147,7 +147,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 9d5c27336962..67bbfe87647d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -147,7 +147,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs index 14d7950c4b6f..a01ecacdd72b 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -187,13 +187,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs index 0a7d794e23fc..ca7e413ceeb6 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Banana.cs @@ -147,7 +147,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs index 1973db4c4bed..96a98e9e2f69 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BananaReq.cs @@ -153,13 +153,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value!.Value!, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs index 8dbfb7552b5f..001ce4a14655 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/BasquePig.cs @@ -140,10 +140,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs index 68e8220438eb..85b6baa2d754 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Capitalization.cs @@ -248,22 +248,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs index 0f47bd35e784..05ee372584c4 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Cat.cs @@ -140,16 +140,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs index d411efbb83bd..63a943b1ca32 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Category.cs @@ -160,13 +160,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs index d7c5a4cd96ec..506651c5b421 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ChildCat.cs @@ -202,13 +202,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs index 16551511b256..ba22c38d013f 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ClassModel.cs @@ -147,7 +147,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index e1e504b538e1..bda6577d02c2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -153,16 +153,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs index 260d78873e2e..1b77996e10c2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -195,16 +195,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs index ed6bc6534338..fb8adbaeb62f 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DanishPig.cs @@ -140,10 +140,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs index f39aa601716f..bde9eedbf899 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -153,7 +153,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 5e4782e9741b..edf3580a5006 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -147,7 +147,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs index 68a2f65c9aff..d0913992d157 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant1.cs @@ -140,22 +140,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value!, descendantName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs index 5a130166a0b1..5cd06903b366 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Descendant2.cs @@ -140,22 +140,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value!, confidentiality.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs index b8435f95759c..d138df0d6905 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Dog.cs @@ -140,16 +140,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs index cce96329e588..678e0ed5419d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Drawing.cs @@ -207,10 +207,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs index a81af5d8181b..4c21cc792a55 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EntityBase.cs @@ -154,10 +154,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs index 05f5e7db1d24..087a026beaaf 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -306,10 +306,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs index 62c8f51ce807..2eefc1ef6ba2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EnumTest.cs @@ -824,31 +824,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value!.Value!, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 407e33a7b6f5..c30ec912d755 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -153,16 +153,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs index 6608c8f2c0e0..d5eb5d549ea6 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/File.cs @@ -148,7 +148,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index d8837421dcac..7e388fa26fa2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -167,10 +167,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs index 4b75918a83d5..f410f110f43c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Foo.cs @@ -147,7 +147,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index baa4b149818a..cfc038f14e58 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -147,7 +147,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs index 1badd1c0d948..3c0a18995dc9 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/FormatTest.cs @@ -828,103 +828,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs index f902f78034c4..363808c467e3 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Fruit.cs @@ -185,7 +185,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs index 1eccb13e9003..57ccb03380ab 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GmFruit.cs @@ -189,7 +189,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 4477d4279465..b5365a68d6ba 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -157,10 +157,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 1a446ca46e5a..103d547b76d2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -208,10 +208,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 82b78a3e00f9..fc3ff4a253e9 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -294,22 +294,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index b211cf0586b1..466c62aea797 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -146,16 +146,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs index b8a8a257d0d2..51f16d706697 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/List.cs @@ -147,7 +147,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 70963bef2fc5..91d2b5fb1c3c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -167,10 +167,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs index fc906f76d9ff..05a5e5d55604 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Mammal.cs @@ -216,10 +216,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs index 64474ff0d16d..c232c64f65da 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MapTest.cs @@ -273,16 +273,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 48eca2b1e0b8..f5f988259cdf 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -147,7 +147,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs index e5c9f6f2f2f7..03581cdcfd40 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -147,7 +147,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 1cef2917ba78..840ed7657912 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -219,16 +219,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs index 77c1611f8f80..b385cf0dd9ee 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -147,7 +147,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs index ff4080153aea..bf0f3e968c36 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Model200Response.cs @@ -167,10 +167,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs index b32d7f964146..4b654356987a 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ModelClient.cs @@ -147,7 +147,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs index 8fd568be1a6b..73f861dcc6cc 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Name.cs @@ -241,19 +241,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value!.Value!, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 10c8125b1068..c8a57aa7547f 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -153,16 +153,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value!, pkiNotificationtestID.Value!.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs index d1327d7b480f..96cbd8c1fcca 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableClass.cs @@ -377,10 +377,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs index b257d25ab62f..f8120a285900 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NullableShape.cs @@ -195,10 +195,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs index a463ed4572d3..25105240d38d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -147,7 +147,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 03727598207c..5b4319dbc5ef 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -210,16 +210,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs index ee4d0c85d40a..52073abb4d53 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Order.cs @@ -342,22 +342,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs index 686aa2d77797..fe4f0786dbaf 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -187,13 +187,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs index 70e91c22627e..8d83f726bb64 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ParentPet.cs @@ -120,10 +120,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs index 5c16160c5db9..84a01f8eeae3 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pet.cs @@ -323,28 +323,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value!, photoUrls.Value!, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs index 217360908bd8..fa25f86f0451 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Pig.cs @@ -195,10 +195,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs index 258df7403653..f3ef0fda6d96 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -195,10 +195,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index bbd3a56b31ed..56c9dfeac6ba 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -140,10 +140,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 3b1999efb42d..72ccb4531a7d 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -205,10 +205,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs index 1912f3c24ebf..186dfc468ead 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2079,136 +2079,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value!.Value!, requiredNotnullableArrayOfString.Value!, requiredNotnullableBooleanProp.Value!.Value!, requiredNotnullableDatetimeProp.Value!.Value!, requiredNotnullableEnumInteger.Value!.Value!, requiredNotnullableEnumIntegerOnly.Value!.Value!, requiredNotnullableEnumString.Value!.Value!, requiredNotnullableOuterEnumDefaultValue.Value!.Value!, requiredNotnullableStringProp.Value!, requiredNotnullableUuid.Value!.Value!, requiredNotnullableintegerProp.Value!.Value!, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value!, requiredNullableBooleanProp.Value!, requiredNullableDateProp.Value!, requiredNullableDatetimeProp.Value!, requiredNullableEnumInteger.Value!, requiredNullableEnumIntegerOnly.Value!, requiredNullableEnumString.Value!, requiredNullableIntegerProp.Value!, requiredNullableOuterEnumDefaultValue.Value!, requiredNullableStringProp.Value!, requiredNullableUuid.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs index a6bef2efe103..fe06dd89d4c9 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Result.cs @@ -190,13 +190,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs index fd9446247331..12c679cd5146 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Return.cs @@ -193,19 +193,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value!, varAbstract.Value!, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs index ac6dd43ef0b2..056240574ca5 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -167,10 +167,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 55d774689f49..264d24e0505b 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -147,7 +147,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index f1779050584b..fd0f1d1bcba9 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -153,16 +153,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs index 22f37a48e620..9946323dcdbe 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Shape.cs @@ -195,10 +195,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs index cb375197e488..4404aab7f1b1 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -140,10 +140,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 4df1e6983ad1..665942a5f44f 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -195,10 +195,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 0034604725d0..c0ba8c4782be 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -153,16 +153,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs index 81c58c98aa68..026f410268fe 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -167,10 +167,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs index a16ea726bfff..0702b6e968f2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Tag.cs @@ -167,10 +167,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 182412d38e32..61b664997f85 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -147,7 +147,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 97b4b270f1c9..54b592a8f5a4 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -147,7 +147,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs index 5b568b36e9ec..e75e8fbaeb7c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -243,16 +243,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 07d98ed51393..3e8d19707387 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -147,7 +147,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs index d168aff8b9c2..f8a9abc06052 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TestResult.cs @@ -189,13 +189,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs index 0be5259f1ebe..c3d21195968a 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Triangle.cs @@ -216,10 +216,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs index c97244ab95ff..358a0e2aa20c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -140,10 +140,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs index c6a4d2cddb86..ce498d7d327c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/User.cs @@ -372,31 +372,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs index 74e3afd8dbf8..d0099756b15c 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Whale.cs @@ -180,16 +180,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value!, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs index f6faea2fd5ed..fae5958200e6 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/Zebra.cs @@ -247,13 +247,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value!, type); } diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 796310e1783f..cf5d2bcb6a8f 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -220,7 +220,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs index e6e5bf9b1853..62078fd772e4 100644 --- a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Apple.cs @@ -147,7 +147,7 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (kind.IsSet && kind.Value == null) - throw new ArgumentNullException(nameof(kind), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: kind."); return new Apple(kind); } diff --git a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs index 65dc4a02463e..65f3b8595ee9 100644 --- a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Banana.cs @@ -147,7 +147,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (count.IsSet && count.Value == null) - throw new ArgumentNullException(nameof(count), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: count."); return new Banana(count); } diff --git a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs index af45459bafc7..995c0a87ad8b 100644 --- a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Fruit.cs @@ -213,7 +213,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Orange.cs b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Orange.cs index 793f5553239f..eea08050f18f 100644 --- a/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Orange.cs +++ b/samples/client/petstore/csharp/generichost/net9/OneOf/src/Org.OpenAPITools/Model/Orange.cs @@ -147,7 +147,7 @@ public override Orange Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class Orange."); + throw new JsonException("Property is not nullable for class Orange: sweet."); return new Orange(sweet); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 2fb20fd76ba8..1c125e463c07 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -145,7 +145,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index a7c053f968ff..434f74698e3b 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -165,10 +165,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 2d355959392c..482589a9e5fc 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -286,25 +286,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Animal.cs index 90faf3ed2ad0..371595944d7b 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -175,13 +175,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 332e1e100ce2..57f797027126 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -185,13 +185,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 8559896f3b99..39231f0d396f 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -215,13 +215,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index cc81766fcebe..90b875f38347 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -151,13 +151,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 9a6a9cb6326c..0deac145a207 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 1b911bc1d6c0..114ec6836190 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index e42133d4a724..07ecc2d530e9 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -185,13 +185,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs index d887a45c931e..01833655a60c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index db3b3f2aabd1..e51da17d64bb 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -151,13 +151,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value.Value, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index da8a396dd208..bf65c1513d18 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -138,10 +138,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 57decedb097c..411ab5061c07 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -246,22 +246,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs index f3f27956ed3b..c5c9fa76f628 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -138,16 +138,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs index d78edc3ee72c..4dfc61b1b3e3 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -158,13 +158,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index d5e2a907d867..fa6b06132a0c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -200,13 +200,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 012fb4ea1848..9d988f7b5984 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -145,7 +145,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 71f28630fcd3..9f1ccf82a8cc 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -151,16 +151,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 790b30d0598c..fad896e8c944 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -193,16 +193,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 36182d9cbb8e..e3acfad07f60 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -138,10 +138,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 72a7565ec3c6..cd989244f843 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -151,7 +151,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 4e0d1370cc9a..2a867bcc4298 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -145,7 +145,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 00e11bca0df2..ef4fa867e899 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs @@ -138,22 +138,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value, descendantName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index 3ad11787dcb3..d83152dfa6b7 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs @@ -138,22 +138,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value, confidentiality.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 5d01cd38ebbe..67c58e4ae967 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -138,16 +138,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index b1c4e76fe748..8e666f2d2867 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -205,10 +205,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs index c7187fd04841..3b32946bb5b9 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs @@ -152,10 +152,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 231e6fbbf6bc..11f9cab173bd 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -304,10 +304,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index 0aaa3e6fe0aa..bd7ccf486fc3 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -822,31 +822,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value.Value, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 6945fabbfb86..665b265fe8b5 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -151,16 +151,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/File.cs index 598363737a5e..6aa960a41e31 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -146,7 +146,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 74bfbfa1b1ec..82e18d1ef389 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -165,10 +165,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Foo.cs index ab3a41f87790..42a29e21422b 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -145,7 +145,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 5d64e47dc7f5..6c0af8514c82 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -145,7 +145,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index b489e77a1e15..fe45e4e488a8 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -826,103 +826,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index a73048ec0ad1..5bd5f12a2603 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -183,7 +183,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 7071fe00f86d..e7a346898f1e 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -187,7 +187,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 98b7ec6c5479..7496855fdf41 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -155,10 +155,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 925dfb5ff515..7ed6d4990ae9 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -206,10 +206,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 2f37dd2a61d9..38948d0c1ed3 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -292,22 +292,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 9e34531ab9ba..2329eea4f42b 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -144,16 +144,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/List.cs index b65cac7456c4..65bc7f611171 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -145,7 +145,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4b1007e9aaf5..3800055a0760 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -165,10 +165,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 9bc6bbaaf9b9..c4acb8c9c9bd 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -214,10 +214,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index b5cdc783088c..831d190dfa8d 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -271,16 +271,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 57207f29ddb1..2814c36e50fa 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -145,7 +145,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index c3a43f3fc745..c3400316bbc5 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -145,7 +145,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 1d5a4defe637..cc59be1b34d9 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -217,16 +217,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index c1fbf300b336..2843e40b0049 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -145,7 +145,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index bb2913f5df66..38197b7ab613 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -165,10 +165,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index f4acaf49d8f1..66179ce2bd9c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -145,7 +145,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs index 19757fa1c327..8d2d529f0503 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -239,19 +239,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value.Value, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 2858e8d86e69..883b72447c75 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -151,16 +151,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value, pkiNotificationtestID.Value.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index 0c4818c0bff4..77edeb3e45e0 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -375,10 +375,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index dd205b2df274..dcbb486a9920 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -193,10 +193,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 428f234deaeb..0e5d10a95ada 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -145,7 +145,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index d8bd9f36ea39..9ecaccc0bb1d 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -208,16 +208,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs index d3f99122b153..f678fe600e84 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -340,22 +340,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 93be59d99690..5e4cea2ad890 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -185,13 +185,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index f268a60b3dcd..a5c2a2f12ef1 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -118,10 +118,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs index 6d3d8121e68c..599d7d612422 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -321,28 +321,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value, photoUrls.Value, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pig.cs index 3d7b78a18292..8922e573ab0f 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -193,10 +193,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index f1b8095c949f..bb695bd00b79 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -193,10 +193,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 790693a4ee03..8d7a57c59526 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -138,10 +138,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index ddd15217fc1f..edcaca516e33 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -203,10 +203,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index 50d69fccab91..779f1eb4f318 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2077,136 +2077,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs index b57d0b4c7e8e..62bc561934d5 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -188,13 +188,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs index c4b5b9636bb3..a9c51b8a1ec6 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -191,19 +191,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value, varAbstract.Value, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 9b73fae206ff..5e3a5137cb38 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -165,10 +165,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 22702cfaa178..2b804f7bd98c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -145,7 +145,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index fc2982004601..d8eac4a684ce 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -151,16 +151,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Shape.cs index 7a2dd62962fb..49b8e42ab4f9 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -193,10 +193,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 54079932ecbf..3fce1535c904 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -138,10 +138,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 52a892aeb9e1..fa998a6ecdd7 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -193,10 +193,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 45ef5585c1a2..179b7c602d12 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -151,16 +151,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index 9b3bfdab8bcf..c24374910fa1 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -165,10 +165,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs index 9ac1082f742a..1106d4a4e7ee 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -165,10 +165,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index b48698e26e70..36a4085251e4 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index 4d1c9e06a24f..e6726b227d81 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs index a28ece650979..39a686cd928e 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -241,16 +241,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 5bd2ec9a6bba..a6ad15da33a2 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -145,7 +145,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index 5abf98b1e65b..beb1ab579d11 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -187,13 +187,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index 9e1ae42200c6..1ef3b35e8e9c 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -214,10 +214,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index afe9457b01a5..ed4592635d34 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -138,10 +138,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/User.cs index 90deb77dbaaa..af6279d66395 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -370,31 +370,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs index 1cdb5bad9dd1..5d5e1b5421b6 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -178,16 +178,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index 8bd6f70f0a95..351e31c7bec1 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -245,13 +245,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value, type); } diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 0f0d25e333db..2614b6be623f 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -218,7 +218,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs index 14a5655c8023..4e8cdbade02e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Activity.cs @@ -148,7 +148,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 06c18ced2a1c..ea78057f2157 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -168,10 +168,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index d4e0bd11b830..033acfcc2f86 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -289,25 +289,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs index 6861539d48cb..f17ca142e62e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Animal.cs @@ -178,13 +178,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs index 6895b23c9654..7fe2badda61a 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -188,13 +188,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs index ed26f278fc46..28e983f8c1f7 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Apple.cs @@ -218,13 +218,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs index 95c14d25d542..6bf3eafa9dde 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/AppleReq.cs @@ -154,13 +154,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value!, mealy); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index 270d77309df1..31d9c34c847b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -148,7 +148,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index c2fbcd6a7e57..162b12039c99 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -148,7 +148,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs index 877795d5cfd4..554aabd49342 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -188,13 +188,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs index fd95bd629bbe..67d43b51ee6f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Banana.cs @@ -148,7 +148,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs index afdff1b19be1..1be1967bbf30 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BananaReq.cs @@ -154,13 +154,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value!.Value!, sweet); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs index d2b0f9fc8e45..a0e29952cf6b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/BasquePig.cs @@ -141,10 +141,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs index 26ea3730fba7..88ffeedd57e2 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Capitalization.cs @@ -249,22 +249,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs index c44fc9083169..e4b3cccaac9a 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Cat.cs @@ -141,16 +141,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs index 9795a7beec1b..1201a731b6e7 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Category.cs @@ -161,13 +161,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs index 77c923435187..15382bf6aba3 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ChildCat.cs @@ -203,13 +203,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs index 90236769cb4a..b90a63c9080f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ClassModel.cs @@ -148,7 +148,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index d1828daed8ba..ce569aa8a223 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -154,16 +154,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs index 7c1c3f7fe287..6ea89bfa46cf 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -196,16 +196,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs index 94e9213fe899..c75866f77a37 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DanishPig.cs @@ -141,10 +141,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs index 60ef9165d975..e6886061ce16 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -154,7 +154,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 4b96563e3461..f38c40855cf9 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -148,7 +148,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs index 48aba268c5b9..4b36c6fb200e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant1.cs @@ -141,22 +141,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value!, descendantName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs index aae60577a78f..4060b8ea853e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Descendant2.cs @@ -141,22 +141,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value!, confidentiality.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs index f43fe465b65a..16dc36126f60 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Dog.cs @@ -141,16 +141,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs index d26192a1adba..0204ffd11b67 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Drawing.cs @@ -208,10 +208,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs index 74cb49595291..18696b473eaa 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EntityBase.cs @@ -155,10 +155,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs index 5c6eccf09721..fb02ff8e8d41 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -307,10 +307,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs index 57e8cd61d373..4e67307c599d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EnumTest.cs @@ -825,31 +825,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value!.Value!, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index a4d6ad4c2f68..b3efb43120f2 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -154,16 +154,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs index c26fe4f172ce..5b777b632272 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/File.cs @@ -149,7 +149,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 77eeacd1bfce..c77f93cc5dda 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -168,10 +168,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs index a26bca0b15d4..9bc633fb1347 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Foo.cs @@ -148,7 +148,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 23d6edaccb8c..ed0f645778c7 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -148,7 +148,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs index bc64a259b1eb..5e2b0098cd89 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/FormatTest.cs @@ -829,103 +829,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value!, date.Value!.Value!, number.Value!.Value!, password.Value!, stringFormattedAsDecimalRequired.Value!.Value!, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs index b9adf9d71cc8..9bef81f9165b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Fruit.cs @@ -186,7 +186,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs index a2198a7ec32a..319c972914d5 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GmFruit.cs @@ -190,7 +190,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 831bc16de8c2..a561b03d9a80 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -158,10 +158,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 098874540247..ef6d3ab7c298 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -209,10 +209,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index f14013f65705..8428d73f1f4d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -295,22 +295,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 261267b6c02f..76f823c04feb 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -147,16 +147,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs index d6cd61b8668e..d2428a617391 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/List.cs @@ -148,7 +148,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 3de1c9b7ebc5..5089070ed31b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -168,10 +168,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs index a6fd263ff981..02f86812548c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Mammal.cs @@ -217,10 +217,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs index a8ff51c976de..be29a234a40f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MapTest.cs @@ -274,16 +274,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 93b19a688f74..b161e262d82e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -148,7 +148,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs index f79216144534..88bbc61728d0 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -148,7 +148,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index 2a2d05afb5bf..00c741fe8230 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -220,16 +220,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs index e9036f7546d3..e7b51c028c54 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -148,7 +148,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs index 4538cb6884df..6f113f248688 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Model200Response.cs @@ -168,10 +168,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs index 357ce5b2d143..aa8b7f0e664c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ModelClient.cs @@ -148,7 +148,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs index 37f41d119044..a57af8984382 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Name.cs @@ -242,19 +242,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value!.Value!, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 358f13e8de5f..49af3bbc0011 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -154,16 +154,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value!, pkiNotificationtestID.Value!.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs index 5bf7c08c2823..4c37377b8b56 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableClass.cs @@ -378,10 +378,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs index f768d56b98d9..650fa75d3470 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NullableShape.cs @@ -196,10 +196,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs index b051d11b1761..f3b39743e06c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -148,7 +148,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index e041d875bc51..181ca33013a1 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -211,16 +211,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs index 5a9d1362547d..2a4479bb6892 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Order.cs @@ -343,22 +343,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs index 4a94f026f474..611702e0a740 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -188,13 +188,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs index 3cac06dda885..b5a9f269d06a 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ParentPet.cs @@ -121,10 +121,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs index 4e7c71f8a59d..2f834d4ad27e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pet.cs @@ -324,28 +324,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value!, photoUrls.Value!, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs index 5640fd1d9c8d..4e3ca083f0e0 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Pig.cs @@ -196,10 +196,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs index eabed88718f8..07a6da257acc 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -196,10 +196,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index ac2b8e61cd67..6da445395d9b 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -141,10 +141,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 8a93f3022a91..721f02f2e915 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -206,10 +206,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs index 599aa94d5e5e..b876a0dfebb4 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2080,136 +2080,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value!.Value!, requiredNotnullableArrayOfString.Value!, requiredNotnullableBooleanProp.Value!.Value!, requiredNotnullableDatetimeProp.Value!.Value!, requiredNotnullableEnumInteger.Value!.Value!, requiredNotnullableEnumIntegerOnly.Value!.Value!, requiredNotnullableEnumString.Value!.Value!, requiredNotnullableOuterEnumDefaultValue.Value!.Value!, requiredNotnullableStringProp.Value!, requiredNotnullableUuid.Value!.Value!, requiredNotnullableintegerProp.Value!.Value!, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value!, requiredNullableBooleanProp.Value!, requiredNullableDateProp.Value!, requiredNullableDatetimeProp.Value!, requiredNullableEnumInteger.Value!, requiredNullableEnumIntegerOnly.Value!, requiredNullableEnumString.Value!, requiredNullableIntegerProp.Value!, requiredNullableOuterEnumDefaultValue.Value!, requiredNullableStringProp.Value!, requiredNullableUuid.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs index 5e2d71377d97..bbeabbb4a288 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Result.cs @@ -191,13 +191,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs index 36c27ec413ed..a939792e9831 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Return.cs @@ -194,19 +194,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value!, varAbstract.Value!, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs index bbaefb23e8b7..1dd908069a7d 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -168,10 +168,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index e292a138c48e..af7998bdab26 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -148,7 +148,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index 9e866915b32f..fd5f5a3f6e69 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -154,16 +154,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value!, triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs index 4c152f2ef2fe..2a1135dcf33c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Shape.cs @@ -196,10 +196,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs index 5aedd501c226..2d1a8d444eba 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -141,10 +141,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs index b18fbb1d936e..4ff352dcff8f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -196,10 +196,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index e7ed21a8c3ca..7de7001d7e74 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -154,16 +154,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value!, shapeType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs index edf8a9edcacf..5d8916e01495 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -168,10 +168,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs index a5f86d17a002..9d3e01cfe13f 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Tag.cs @@ -168,10 +168,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index 508388831ad1..a77e39fb335a 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -148,7 +148,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index cdd78842b091..fa3bdcca712c 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -148,7 +148,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs index 7410185d15aa..c55f09c24ad7 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -244,16 +244,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index 41fcb61c7c76..79f0d4ead06e 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -148,7 +148,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs index eee7fb7736e2..ed2c4f9b1ee4 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TestResult.cs @@ -190,13 +190,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs index 5e994d5c98e6..a136888f90d4 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Triangle.cs @@ -217,10 +217,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs index 20b576d5efbd..bacb230b71b7 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -141,10 +141,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value!); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs index 2589af030b24..66da53d722ec 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/User.cs @@ -373,31 +373,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs index a55ad54be20d..29ec64728866 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Whale.cs @@ -181,16 +181,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value!, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs index 143976f6b272..fa37280bcd17 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/Zebra.cs @@ -248,13 +248,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value!, type); } diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 733adac3c5c4..184ee862a155 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -221,7 +221,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } diff --git a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs index f8d7a66197ae..43cfd5298ad3 100644 --- a/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs +++ b/samples/client/petstore/csharp/generichost/net9/UseDateTimeForDate/src/Org.OpenAPITools/Model/NowGet200Response.cs @@ -169,10 +169,10 @@ public override NowGet200Response Read(ref Utf8JsonReader utf8JsonReader, Type t } if (now.IsSet && now.Value == null) - throw new ArgumentNullException(nameof(now), "Property is not nullable for class NowGet200Response."); + throw new JsonException("Property is not nullable for class NowGet200Response: now."); if (today.IsSet && today.Value == null) - throw new ArgumentNullException(nameof(today), "Property is not nullable for class NowGet200Response."); + throw new JsonException("Property is not nullable for class NowGet200Response: today."); return new NowGet200Response(now, today); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs index 6ef65dc03490..99262aea8c59 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Activity.cs @@ -145,7 +145,7 @@ public override Activity Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (activityOutputs.IsSet && activityOutputs.Value == null) - throw new ArgumentNullException(nameof(activityOutputs), "Property is not nullable for class Activity."); + throw new JsonException("Property is not nullable for class Activity: activity_outputs."); return new Activity(activityOutputs); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs index 0900bb21d987..03949c150021 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ActivityOutputElementRepresentation.cs @@ -165,10 +165,10 @@ public override ActivityOutputElementRepresentation Read(ref Utf8JsonReader utf8 } if (prop1.IsSet && prop1.Value == null) - throw new ArgumentNullException(nameof(prop1), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop1."); if (prop2.IsSet && prop2.Value == null) - throw new ArgumentNullException(nameof(prop2), "Property is not nullable for class ActivityOutputElementRepresentation."); + throw new JsonException("Property is not nullable for class ActivityOutputElementRepresentation: prop2."); return new ActivityOutputElementRepresentation(prop1, prop2); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs index 1ea3cc6d6d13..326b04bfc736 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AdditionalPropertiesClass.cs @@ -286,25 +286,25 @@ public override AdditionalPropertiesClass Read(ref Utf8JsonReader utf8JsonReader } if (emptyMap.IsSet && emptyMap.Value == null) - throw new ArgumentNullException(nameof(emptyMap), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: empty_map."); if (mapOfMapProperty.IsSet && mapOfMapProperty.Value == null) - throw new ArgumentNullException(nameof(mapOfMapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_of_map_property."); if (mapProperty.IsSet && mapProperty.Value == null) - throw new ArgumentNullException(nameof(mapProperty), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_property."); if (mapWithUndeclaredPropertiesAnytype1.IsSet && mapWithUndeclaredPropertiesAnytype1.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype1), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_1."); if (mapWithUndeclaredPropertiesAnytype2.IsSet && mapWithUndeclaredPropertiesAnytype2.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype2), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_2."); if (mapWithUndeclaredPropertiesAnytype3.IsSet && mapWithUndeclaredPropertiesAnytype3.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesAnytype3), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_anytype_3."); if (mapWithUndeclaredPropertiesString.IsSet && mapWithUndeclaredPropertiesString.Value == null) - throw new ArgumentNullException(nameof(mapWithUndeclaredPropertiesString), "Property is not nullable for class AdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class AdditionalPropertiesClass: map_with_undeclared_properties_string."); return new AdditionalPropertiesClass(anytype1, emptyMap, mapOfMapProperty, mapProperty, mapWithUndeclaredPropertiesAnytype1, mapWithUndeclaredPropertiesAnytype2, mapWithUndeclaredPropertiesAnytype3, mapWithUndeclaredPropertiesString); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs index af30b50b1efd..24bb80b1161e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Animal.cs @@ -175,13 +175,13 @@ public override Animal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Animal.", nameof(className)); + throw new JsonException("Property is required for class Animal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Animal."); + throw new JsonException("Property is not nullable for class Animal: color."); return new Animal(color); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs index 891117de444d..53bcd08ade21 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ApiResponse.cs @@ -185,13 +185,13 @@ public override ApiResponse Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: code."); if (message.IsSet && message.Value == null) - throw new ArgumentNullException(nameof(message), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: message."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class ApiResponse."); + throw new JsonException("Property is not nullable for class ApiResponse: type."); return new ApiResponse(code, message, type); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs index 415d977cb273..75cee1b3c300 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Apple.cs @@ -215,13 +215,13 @@ public override Apple Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (colorCode.IsSet && colorCode.Value == null) - throw new ArgumentNullException(nameof(colorCode), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: color_code."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: cultivar."); if (origin.IsSet && origin.Value == null) - throw new ArgumentNullException(nameof(origin), "Property is not nullable for class Apple."); + throw new JsonException("Property is not nullable for class Apple: origin."); return new Apple(colorCode, cultivar, origin); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs index a8bb9970d266..3b78fca25fa6 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/AppleReq.cs @@ -151,13 +151,13 @@ public override AppleReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!cultivar.IsSet) - throw new ArgumentException("Property is required for class AppleReq.", nameof(cultivar)); + throw new JsonException("Property is required for class AppleReq: cultivar."); if (cultivar.IsSet && cultivar.Value == null) - throw new ArgumentNullException(nameof(cultivar), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: cultivar."); if (mealy.IsSet && mealy.Value == null) - throw new ArgumentNullException(nameof(mealy), "Property is not nullable for class AppleReq."); + throw new JsonException("Property is not nullable for class AppleReq: mealy."); return new AppleReq(cultivar.Value, mealy); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs index cf982fbeaccc..a7dd1fab07e2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, } if (arrayArrayNumber.IsSet && arrayArrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayArrayNumber), "Property is not nullable for class ArrayOfArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfArrayOfNumberOnly: ArrayArrayNumber."); return new ArrayOfArrayOfNumberOnly(arrayArrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs index 9a0450a54939..977b54bc1746 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayOfNumberOnly.cs @@ -145,7 +145,7 @@ public override ArrayOfNumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type t } if (arrayNumber.IsSet && arrayNumber.Value == null) - throw new ArgumentNullException(nameof(arrayNumber), "Property is not nullable for class ArrayOfNumberOnly."); + throw new JsonException("Property is not nullable for class ArrayOfNumberOnly: ArrayNumber."); return new ArrayOfNumberOnly(arrayNumber); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs index 946aa81707b4..083bb513576a 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ArrayTest.cs @@ -185,13 +185,13 @@ public override ArrayTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (arrayArrayOfInteger.IsSet && arrayArrayOfInteger.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfInteger), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_integer."); if (arrayArrayOfModel.IsSet && arrayArrayOfModel.Value == null) - throw new ArgumentNullException(nameof(arrayArrayOfModel), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_array_of_model."); if (arrayOfString.IsSet && arrayOfString.Value == null) - throw new ArgumentNullException(nameof(arrayOfString), "Property is not nullable for class ArrayTest."); + throw new JsonException("Property is not nullable for class ArrayTest: array_of_string."); return new ArrayTest(arrayArrayOfInteger, arrayArrayOfModel, arrayOfString); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs index 1963adefce90..f330f0454ebf 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Banana.cs @@ -145,7 +145,7 @@ public override Banana Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class Banana."); + throw new JsonException("Property is not nullable for class Banana: lengthCm."); return new Banana(lengthCm); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs index d88783cbab2d..b7bc9af9a97d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BananaReq.cs @@ -151,13 +151,13 @@ public override BananaReq Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!lengthCm.IsSet) - throw new ArgumentException("Property is required for class BananaReq.", nameof(lengthCm)); + throw new JsonException("Property is required for class BananaReq: lengthCm."); if (lengthCm.IsSet && lengthCm.Value == null) - throw new ArgumentNullException(nameof(lengthCm), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: lengthCm."); if (sweet.IsSet && sweet.Value == null) - throw new ArgumentNullException(nameof(sweet), "Property is not nullable for class BananaReq."); + throw new JsonException("Property is not nullable for class BananaReq: sweet."); return new BananaReq(lengthCm.Value.Value, sweet); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs index da8a396dd208..bf65c1513d18 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/BasquePig.cs @@ -138,10 +138,10 @@ public override BasquePig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class BasquePig.", nameof(className)); + throw new JsonException("Property is required for class BasquePig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class BasquePig."); + throw new JsonException("Property is not nullable for class BasquePig: className."); return new BasquePig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs index 35fa5c799fe0..fd01e5b09eaf 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Capitalization.cs @@ -246,22 +246,22 @@ public override Capitalization Read(ref Utf8JsonReader utf8JsonReader, Type type } if (aTTNAME.IsSet && aTTNAME.Value == null) - throw new ArgumentNullException(nameof(aTTNAME), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: ATT_NAME."); if (capitalCamel.IsSet && capitalCamel.Value == null) - throw new ArgumentNullException(nameof(capitalCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: CapitalCamel."); if (capitalSnake.IsSet && capitalSnake.Value == null) - throw new ArgumentNullException(nameof(capitalSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: Capital_Snake."); if (sCAETHFlowPoints.IsSet && sCAETHFlowPoints.Value == null) - throw new ArgumentNullException(nameof(sCAETHFlowPoints), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: SCA_ETH_Flow_Points."); if (smallCamel.IsSet && smallCamel.Value == null) - throw new ArgumentNullException(nameof(smallCamel), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: smallCamel."); if (smallSnake.IsSet && smallSnake.Value == null) - throw new ArgumentNullException(nameof(smallSnake), "Property is not nullable for class Capitalization."); + throw new JsonException("Property is not nullable for class Capitalization: small_Snake."); return new Capitalization(aTTNAME, capitalCamel, capitalSnake, sCAETHFlowPoints, smallCamel, smallSnake); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs index dbf7d5878726..ea0441165f89 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Cat.cs @@ -138,16 +138,16 @@ public override Cat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Cat.", nameof(className)); + throw new JsonException("Property is required for class Cat: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: className."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: color."); if (declawed.IsSet && declawed.Value == null) - throw new ArgumentNullException(nameof(declawed), "Property is not nullable for class Cat."); + throw new JsonException("Property is not nullable for class Cat: declawed."); return new Cat(color, declawed); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs index c33db720faab..6dc2362cc48e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Category.cs @@ -158,13 +158,13 @@ public override Category Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!name.IsSet) - throw new ArgumentException("Property is required for class Category.", nameof(name)); + throw new JsonException("Property is required for class Category: name."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Category."); + throw new JsonException("Property is not nullable for class Category: name."); return new Category(id, name.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs index 0df505327662..f14bc54e1086 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ChildCat.cs @@ -200,13 +200,13 @@ public override ChildCat Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ChildCat.", nameof(petType)); + throw new JsonException("Property is required for class ChildCat: pet_type."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: name."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ChildCat."); + throw new JsonException("Property is not nullable for class ChildCat: pet_type."); return new ChildCat(name); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs index 2cec4e3ee767..62e448309893 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ClassModel.cs @@ -145,7 +145,7 @@ public override ClassModel Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class ClassModel."); + throw new JsonException("Property is not nullable for class ClassModel: _class."); return new ClassModel(varClass); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs index 71f28630fcd3..9f1ccf82a8cc 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ComplexQuadrilateral.cs @@ -151,16 +151,16 @@ public override ComplexQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Typ } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ComplexQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class ComplexQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ComplexQuadrilateral."); + throw new JsonException("Property is not nullable for class ComplexQuadrilateral: shapeType."); return new ComplexQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs index 790b30d0598c..fad896e8c944 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/CopyActivity.cs @@ -193,16 +193,16 @@ public override CopyActivity Read(ref Utf8JsonReader utf8JsonReader, Type typeTo } if (!copyActivitytt.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(copyActivitytt)); + throw new JsonException("Property is required for class CopyActivity: copyActivitytt."); if (!schema.IsSet) - throw new ArgumentException("Property is required for class CopyActivity.", nameof(schema)); + throw new JsonException("Property is required for class CopyActivity: $schema."); if (copyActivitytt.IsSet && copyActivitytt.Value == null) - throw new ArgumentNullException(nameof(copyActivitytt), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: copyActivitytt."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class CopyActivity."); + throw new JsonException("Property is not nullable for class CopyActivity: $schema."); return new CopyActivity(copyActivitytt.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs index 36182d9cbb8e..e3acfad07f60 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DanishPig.cs @@ -138,10 +138,10 @@ public override DanishPig Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!className.IsSet) - throw new ArgumentException("Property is required for class DanishPig.", nameof(className)); + throw new JsonException("Property is required for class DanishPig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class DanishPig."); + throw new JsonException("Property is not nullable for class DanishPig: className."); return new DanishPig(className.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs index f272f800a65b..b4f039671025 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DateOnlyClass.cs @@ -151,7 +151,7 @@ public override DateOnlyClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (dateOnlyProperty.IsSet && dateOnlyProperty.Value == null) - throw new ArgumentNullException(nameof(dateOnlyProperty), "Property is not nullable for class DateOnlyClass."); + throw new JsonException("Property is not nullable for class DateOnlyClass: dateOnlyProperty."); return new DateOnlyClass(dateOnlyProperty); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs index 5b795e143682..de7a0f313660 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/DeprecatedObject.cs @@ -145,7 +145,7 @@ public override DeprecatedObject Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class DeprecatedObject."); + throw new JsonException("Property is not nullable for class DeprecatedObject: name."); return new DeprecatedObject(name); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs index 00e11bca0df2..ef4fa867e899 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant1.cs @@ -138,22 +138,22 @@ public override Descendant1 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant1: alternativeName."); if (!descendantName.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(descendantName)); + throw new JsonException("Property is required for class Descendant1: descendantName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant1.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant1: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: alternativeName."); if (descendantName.IsSet && descendantName.Value == null) - throw new ArgumentNullException(nameof(descendantName), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: descendantName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant1."); + throw new JsonException("Property is not nullable for class Descendant1: objectType."); return new Descendant1(alternativeName.Value, descendantName.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs index 3ad11787dcb3..d83152dfa6b7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Descendant2.cs @@ -138,22 +138,22 @@ public override Descendant2 Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(alternativeName)); + throw new JsonException("Property is required for class Descendant2: alternativeName."); if (!confidentiality.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(confidentiality)); + throw new JsonException("Property is required for class Descendant2: confidentiality."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class Descendant2.", nameof(objectType)); + throw new JsonException("Property is required for class Descendant2: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: alternativeName."); if (confidentiality.IsSet && confidentiality.Value == null) - throw new ArgumentNullException(nameof(confidentiality), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: confidentiality."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class Descendant2."); + throw new JsonException("Property is not nullable for class Descendant2: objectType."); return new Descendant2(alternativeName.Value, confidentiality.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs index 8f43963d5b4f..e076e9c9525e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Dog.cs @@ -138,16 +138,16 @@ public override Dog Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Dog.", nameof(className)); + throw new JsonException("Property is required for class Dog: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: className."); if (breed.IsSet && breed.Value == null) - throw new ArgumentNullException(nameof(breed), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: breed."); if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Dog."); + throw new JsonException("Property is not nullable for class Dog: color."); return new Dog(breed, color); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs index 2bf745f2f7d4..2aa9413a0cfb 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Drawing.cs @@ -205,10 +205,10 @@ public override Drawing Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (mainShape.IsSet && mainShape.Value == null) - throw new ArgumentNullException(nameof(mainShape), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: mainShape."); if (shapes.IsSet && shapes.Value == null) - throw new ArgumentNullException(nameof(shapes), "Property is not nullable for class Drawing."); + throw new JsonException("Property is not nullable for class Drawing: shapes."); return new Drawing(mainShape, nullableShape, shapeOrNull, shapes); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs index c7187fd04841..3b32946bb5b9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EntityBase.cs @@ -152,10 +152,10 @@ public override EntityBase Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!schema.IsSet) - throw new ArgumentException("Property is required for class EntityBase.", nameof(schema)); + throw new JsonException("Property is required for class EntityBase: $schema."); if (schema.IsSet && schema.Value == null) - throw new ArgumentNullException(nameof(schema), "Property is not nullable for class EntityBase."); + throw new JsonException("Property is not nullable for class EntityBase: $schema."); return new EntityBase(); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs index 75fc3819ecf1..bb1e852f9e73 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumArrays.cs @@ -304,10 +304,10 @@ public override EnumArrays Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (arrayEnum.IsSet && arrayEnum.Value == null) - throw new ArgumentNullException(nameof(arrayEnum), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: array_enum."); if (justSymbol.IsSet && justSymbol.Value == null) - throw new ArgumentNullException(nameof(justSymbol), "Property is not nullable for class EnumArrays."); + throw new JsonException("Property is not nullable for class EnumArrays: just_symbol."); return new EnumArrays(arrayEnum, justSymbol); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs index bd1502d4326b..41c51e61b129 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EnumTest.cs @@ -822,31 +822,31 @@ public override EnumTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!enumStringRequired.IsSet) - throw new ArgumentException("Property is required for class EnumTest.", nameof(enumStringRequired)); + throw new JsonException("Property is required for class EnumTest: enum_string_required."); if (enumStringRequired.IsSet && enumStringRequired.Value == null) - throw new ArgumentNullException(nameof(enumStringRequired), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string_required."); if (enumInteger.IsSet && enumInteger.Value == null) - throw new ArgumentNullException(nameof(enumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer."); if (enumIntegerOnly.IsSet && enumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(enumIntegerOnly), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_integer_only."); if (enumNumber.IsSet && enumNumber.Value == null) - throw new ArgumentNullException(nameof(enumNumber), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_number."); if (enumString.IsSet && enumString.Value == null) - throw new ArgumentNullException(nameof(enumString), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: enum_string."); if (outerEnumDefaultValue.IsSet && outerEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumDefaultValue."); if (outerEnumInteger.IsSet && outerEnumInteger.Value == null) - throw new ArgumentNullException(nameof(outerEnumInteger), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumInteger."); if (outerEnumIntegerDefaultValue.IsSet && outerEnumIntegerDefaultValue.Value == null) - throw new ArgumentNullException(nameof(outerEnumIntegerDefaultValue), "Property is not nullable for class EnumTest."); + throw new JsonException("Property is not nullable for class EnumTest: outerEnumIntegerDefaultValue."); return new EnumTest(enumStringRequired.Value.Value, enumInteger, enumIntegerOnly, enumNumber, enumString, outerEnum, outerEnumDefaultValue, outerEnumInteger, outerEnumIntegerDefaultValue); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs index 6945fabbfb86..665b265fe8b5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/EquilateralTriangle.cs @@ -151,16 +151,16 @@ public override EquilateralTriangle Read(ref Utf8JsonReader utf8JsonReader, Type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class EquilateralTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class EquilateralTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class EquilateralTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class EquilateralTriangle."); + throw new JsonException("Property is not nullable for class EquilateralTriangle: triangleType."); return new EquilateralTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs index f3b89016ca8c..159542d8f5fa 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/File.cs @@ -146,7 +146,7 @@ public override File Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (sourceURI.IsSet && sourceURI.Value == null) - throw new ArgumentNullException(nameof(sourceURI), "Property is not nullable for class File."); + throw new JsonException("Property is not nullable for class File: sourceURI."); return new File(sourceURI); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs index 70c50972598e..d9dd4b26705c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FileSchemaTestClass.cs @@ -165,10 +165,10 @@ public override FileSchemaTestClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (file.IsSet && file.Value == null) - throw new ArgumentNullException(nameof(file), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: file."); if (files.IsSet && files.Value == null) - throw new ArgumentNullException(nameof(files), "Property is not nullable for class FileSchemaTestClass."); + throw new JsonException("Property is not nullable for class FileSchemaTestClass: files."); return new FileSchemaTestClass(file, files); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs index 0bde70e7d10c..a631d8e2d18a 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Foo.cs @@ -145,7 +145,7 @@ public override Foo Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class Foo."); + throw new JsonException("Property is not nullable for class Foo: bar."); return new Foo(bar); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs index 6f6db2d948a2..1bbcb2be323c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FooGetDefaultResponse.cs @@ -145,7 +145,7 @@ public override FooGetDefaultResponse Read(ref Utf8JsonReader utf8JsonReader, Ty } if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FooGetDefaultResponse."); + throw new JsonException("Property is not nullable for class FooGetDefaultResponse: string."); return new FooGetDefaultResponse(varString); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs index b16df5f518e0..30fe9ab86ca4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/FormatTest.cs @@ -826,103 +826,103 @@ public override FormatTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (!varByte.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(varByte)); + throw new JsonException("Property is required for class FormatTest: byte."); if (!date.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(date)); + throw new JsonException("Property is required for class FormatTest: date."); if (!number.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(number)); + throw new JsonException("Property is required for class FormatTest: number."); if (!password.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(password)); + throw new JsonException("Property is required for class FormatTest: password."); if (!stringFormattedAsDecimalRequired.IsSet) - throw new ArgumentException("Property is required for class FormatTest.", nameof(stringFormattedAsDecimalRequired)); + throw new JsonException("Property is required for class FormatTest: string_formatted_as_decimal_required."); if (varByte.IsSet && varByte.Value == null) - throw new ArgumentNullException(nameof(varByte), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: byte."); if (date.IsSet && date.Value == null) - throw new ArgumentNullException(nameof(date), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: date."); if (number.IsSet && number.Value == null) - throw new ArgumentNullException(nameof(number), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: number."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: password."); if (stringFormattedAsDecimalRequired.IsSet && stringFormattedAsDecimalRequired.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimalRequired), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal_required."); if (binary.IsSet && binary.Value == null) - throw new ArgumentNullException(nameof(binary), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: binary."); if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: dateTime."); if (varDecimal.IsSet && varDecimal.Value == null) - throw new ArgumentNullException(nameof(varDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: decimal."); if (varDouble.IsSet && varDouble.Value == null) - throw new ArgumentNullException(nameof(varDouble), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: double."); if (duplicatePropertyName2.IsSet && duplicatePropertyName2.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName2), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: duplicate_property_name."); if (duplicatePropertyName.IsSet && duplicatePropertyName.Value == null) - throw new ArgumentNullException(nameof(duplicatePropertyName), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: @duplicate_property_name."); if (varFloat.IsSet && varFloat.Value == null) - throw new ArgumentNullException(nameof(varFloat), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: float."); if (int32.IsSet && int32.Value == null) - throw new ArgumentNullException(nameof(int32), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32."); if (int32Range.IsSet && int32Range.Value == null) - throw new ArgumentNullException(nameof(int32Range), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int32Range."); if (int64.IsSet && int64.Value == null) - throw new ArgumentNullException(nameof(int64), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64."); if (int64Negative.IsSet && int64Negative.Value == null) - throw new ArgumentNullException(nameof(int64Negative), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Negative."); if (int64NegativeExclusive.IsSet && int64NegativeExclusive.Value == null) - throw new ArgumentNullException(nameof(int64NegativeExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64NegativeExclusive."); if (int64Positive.IsSet && int64Positive.Value == null) - throw new ArgumentNullException(nameof(int64Positive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64Positive."); if (int64PositiveExclusive.IsSet && int64PositiveExclusive.Value == null) - throw new ArgumentNullException(nameof(int64PositiveExclusive), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: int64PositiveExclusive."); if (integer.IsSet && integer.Value == null) - throw new ArgumentNullException(nameof(integer), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: integer."); if (patternWithBackslash.IsSet && patternWithBackslash.Value == null) - throw new ArgumentNullException(nameof(patternWithBackslash), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_backslash."); if (patternWithDigits.IsSet && patternWithDigits.Value == null) - throw new ArgumentNullException(nameof(patternWithDigits), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits."); if (patternWithDigitsAndDelimiter.IsSet && patternWithDigitsAndDelimiter.Value == null) - throw new ArgumentNullException(nameof(patternWithDigitsAndDelimiter), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: pattern_with_digits_and_delimiter."); if (varString.IsSet && varString.Value == null) - throw new ArgumentNullException(nameof(varString), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string."); if (stringFormattedAsDecimal.IsSet && stringFormattedAsDecimal.Value == null) - throw new ArgumentNullException(nameof(stringFormattedAsDecimal), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: string_formatted_as_decimal."); if (unsignedInteger.IsSet && unsignedInteger.Value == null) - throw new ArgumentNullException(nameof(unsignedInteger), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_integer."); if (unsignedLong.IsSet && unsignedLong.Value == null) - throw new ArgumentNullException(nameof(unsignedLong), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: unsigned_long."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class FormatTest."); + throw new JsonException("Property is not nullable for class FormatTest: uuid."); return new FormatTest(varByte.Value, date.Value.Value, number.Value.Value, password.Value, stringFormattedAsDecimalRequired.Value.Value, binary, dateTime, varDecimal, varDouble, duplicatePropertyName2, duplicatePropertyName, varFloat, int32, int32Range, int64, int64Negative, int64NegativeExclusive, int64Positive, int64PositiveExclusive, integer, patternWithBackslash, patternWithDigits, patternWithDigitsAndDelimiter, varString, stringFormattedAsDecimal, unsignedInteger, unsignedLong, uuid); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs index e6781b1c920b..d1a64f42f03b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Fruit.cs @@ -183,7 +183,7 @@ public override Fruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class Fruit."); + throw new JsonException("Property is not nullable for class Fruit: color."); if (apple != null) return new Fruit(apple, color); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs index 2df46dde14c4..8d572546f439 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GmFruit.cs @@ -187,7 +187,7 @@ public override GmFruit Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (color.IsSet && color.Value == null) - throw new ArgumentNullException(nameof(color), "Property is not nullable for class GmFruit."); + throw new JsonException("Property is not nullable for class GmFruit: color."); Option appleParsedValue = apple == null ? default diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs index 98b7ec6c5479..7496855fdf41 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/GrandparentAnimal.cs @@ -155,10 +155,10 @@ public override GrandparentAnimal Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!petType.IsSet) - throw new ArgumentException("Property is required for class GrandparentAnimal.", nameof(petType)); + throw new JsonException("Property is required for class GrandparentAnimal: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class GrandparentAnimal."); + throw new JsonException("Property is not nullable for class GrandparentAnimal: pet_type."); return new GrandparentAnimal(); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs index 925dfb5ff515..7ed6d4990ae9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/HasOnlyReadOnly.cs @@ -206,10 +206,10 @@ public override HasOnlyReadOnly Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: bar."); if (foo.IsSet && foo.Value == null) - throw new ArgumentNullException(nameof(foo), "Property is not nullable for class HasOnlyReadOnly."); + throw new JsonException("Property is not nullable for class HasOnlyReadOnly: foo."); return new HasOnlyReadOnly(bar, foo); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs index 4655c9cbb01e..c3b0e495f381 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/InjectedVendorExtensionsTest.cs @@ -292,22 +292,22 @@ public override InjectedVendorExtensionsTest Read(ref Utf8JsonReader utf8JsonRea } if (potentiallyOverriddenPropertyAccessor.IsSet && potentiallyOverriddenPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyAccessor."); if (potentiallyOverriddenPropertyToInternal.IsSet && potentiallyOverriddenPropertyToInternal.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToInternal), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToInternal."); if (potentiallyOverriddenPropertyToPrivate.IsSet && potentiallyOverriddenPropertyToPrivate.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPrivate), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPrivate."); if (potentiallyOverriddenPropertyToPublic.IsSet && potentiallyOverriddenPropertyToPublic.Value == null) - throw new ArgumentNullException(nameof(potentiallyOverriddenPropertyToPublic), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: potentiallyOverriddenPropertyToPublic."); if (unalteredProperty.IsSet && unalteredProperty.Value == null) - throw new ArgumentNullException(nameof(unalteredProperty), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredProperty."); if (unalteredPropertyAccessor.IsSet && unalteredPropertyAccessor.Value == null) - throw new ArgumentNullException(nameof(unalteredPropertyAccessor), "Property is not nullable for class InjectedVendorExtensionsTest."); + throw new JsonException("Property is not nullable for class InjectedVendorExtensionsTest: unalteredPropertyAccessor."); return new InjectedVendorExtensionsTest(potentiallyOverriddenPropertyAccessor, potentiallyOverriddenPropertyToInternal, potentiallyOverriddenPropertyToPrivate, potentiallyOverriddenPropertyToPublic, unalteredProperty, unalteredPropertyAccessor); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs index 9e34531ab9ba..2329eea4f42b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/IsoscelesTriangle.cs @@ -144,16 +144,16 @@ public override IsoscelesTriangle Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class IsoscelesTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class IsoscelesTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class IsoscelesTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class IsoscelesTriangle."); + throw new JsonException("Property is not nullable for class IsoscelesTriangle: triangleType."); return new IsoscelesTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs index 0ba836f7be5f..eef51661c9d7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/List.cs @@ -145,7 +145,7 @@ public override List Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (var123List.IsSet && var123List.Value == null) - throw new ArgumentNullException(nameof(var123List), "Property is not nullable for class List."); + throw new JsonException("Property is not nullable for class List: 123-list."); return new List(var123List); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs index 4e22fe711e2a..0ca2db559ebe 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/LiteralStringClass.cs @@ -165,10 +165,10 @@ public override LiteralStringClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (escapedLiteralString.IsSet && escapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(escapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: escapedLiteralString."); if (unescapedLiteralString.IsSet && unescapedLiteralString.Value == null) - throw new ArgumentNullException(nameof(unescapedLiteralString), "Property is not nullable for class LiteralStringClass."); + throw new JsonException("Property is not nullable for class LiteralStringClass: unescapedLiteralString."); return new LiteralStringClass(escapedLiteralString, unescapedLiteralString); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs index 9bc6bbaaf9b9..c4acb8c9c9bd 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Mammal.cs @@ -214,10 +214,10 @@ public override Mammal Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!className.IsSet) - throw new ArgumentException("Property is required for class Mammal.", nameof(className)); + throw new JsonException("Property is required for class Mammal: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Mammal."); + throw new JsonException("Property is not nullable for class Mammal: className."); if (pig != null) return new Mammal(pig); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs index c216c04d6468..fda445a67fcd 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MapTest.cs @@ -271,16 +271,16 @@ public override MapTest Read(ref Utf8JsonReader utf8JsonReader, Type typeToConve } if (directMap.IsSet && directMap.Value == null) - throw new ArgumentNullException(nameof(directMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: direct_map."); if (indirectMap.IsSet && indirectMap.Value == null) - throw new ArgumentNullException(nameof(indirectMap), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: indirect_map."); if (mapMapOfString.IsSet && mapMapOfString.Value == null) - throw new ArgumentNullException(nameof(mapMapOfString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_map_of_string."); if (mapOfEnumString.IsSet && mapOfEnumString.Value == null) - throw new ArgumentNullException(nameof(mapOfEnumString), "Property is not nullable for class MapTest."); + throw new JsonException("Property is not nullable for class MapTest: map_of_enum_string."); return new MapTest(directMap, indirectMap, mapMapOfString, mapOfEnumString); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs index 90526549ac2b..02b04b791e8e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedAnyOf.cs @@ -145,7 +145,7 @@ public override MixedAnyOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedAnyOf."); + throw new JsonException("Property is not nullable for class MixedAnyOf: content."); return new MixedAnyOf(content); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs index 2376786bd50e..40618643e1b0 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedOneOf.cs @@ -145,7 +145,7 @@ public override MixedOneOf Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (content.IsSet && content.Value == null) - throw new ArgumentNullException(nameof(content), "Property is not nullable for class MixedOneOf."); + throw new JsonException("Property is not nullable for class MixedOneOf: content."); return new MixedOneOf(content); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs index d406287f4039..ea319b6748e3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedPropertiesAndAdditionalPropertiesClass.cs @@ -217,16 +217,16 @@ public override MixedPropertiesAndAdditionalPropertiesClass Read(ref Utf8JsonRea } if (dateTime.IsSet && dateTime.Value == null) - throw new ArgumentNullException(nameof(dateTime), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: dateTime."); if (map.IsSet && map.Value == null) - throw new ArgumentNullException(nameof(map), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: map."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid."); if (uuidWithPattern.IsSet && uuidWithPattern.Value == null) - throw new ArgumentNullException(nameof(uuidWithPattern), "Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass."); + throw new JsonException("Property is not nullable for class MixedPropertiesAndAdditionalPropertiesClass: uuid_with_pattern."); return new MixedPropertiesAndAdditionalPropertiesClass(dateTime, map, uuid, uuidWithPattern); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs index 2220371abceb..87e11e6999e3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/MixedSubId.cs @@ -145,7 +145,7 @@ public override MixedSubId Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class MixedSubId."); + throw new JsonException("Property is not nullable for class MixedSubId: id."); return new MixedSubId(id); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs index 09990a706a8c..d9971e56423d 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Model200Response.cs @@ -165,10 +165,10 @@ public override Model200Response Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varClass.IsSet && varClass.Value == null) - throw new ArgumentNullException(nameof(varClass), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: class."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Model200Response."); + throw new JsonException("Property is not nullable for class Model200Response: name."); return new Model200Response(varClass, name); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs index 64b5da999734..429d211bd3f2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ModelClient.cs @@ -145,7 +145,7 @@ public override ModelClient Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (varClient.IsSet && varClient.Value == null) - throw new ArgumentNullException(nameof(varClient), "Property is not nullable for class ModelClient."); + throw new JsonException("Property is not nullable for class ModelClient: client."); return new ModelClient(varClient); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs index f657f42be0ab..8d1f2aeb0db8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Name.cs @@ -239,19 +239,19 @@ public override Name Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!varName.IsSet) - throw new ArgumentException("Property is required for class Name.", nameof(varName)); + throw new JsonException("Property is required for class Name: name."); if (varName.IsSet && varName.Value == null) - throw new ArgumentNullException(nameof(varName), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: name."); if (property.IsSet && property.Value == null) - throw new ArgumentNullException(nameof(property), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: property."); if (snakeCase.IsSet && snakeCase.Value == null) - throw new ArgumentNullException(nameof(snakeCase), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: snake_case."); if (var123Number.IsSet && var123Number.Value == null) - throw new ArgumentNullException(nameof(var123Number), "Property is not nullable for class Name."); + throw new JsonException("Property is not nullable for class Name: 123Number."); return new Name(varName.Value.Value, property, snakeCase, var123Number); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs index 2858e8d86e69..883b72447c75 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NotificationtestGetElementsV1ResponseMPayload.cs @@ -151,16 +151,16 @@ public override NotificationtestGetElementsV1ResponseMPayload Read(ref Utf8JsonR } if (!aObjVariableobject.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(aObjVariableobject)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (!pkiNotificationtestID.IsSet) - throw new ArgumentException("Property is required for class NotificationtestGetElementsV1ResponseMPayload.", nameof(pkiNotificationtestID)); + throw new JsonException("Property is required for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); if (aObjVariableobject.IsSet && aObjVariableobject.Value == null) - throw new ArgumentNullException(nameof(aObjVariableobject), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: a_objVariableobject."); if (pkiNotificationtestID.IsSet && pkiNotificationtestID.Value == null) - throw new ArgumentNullException(nameof(pkiNotificationtestID), "Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload."); + throw new JsonException("Property is not nullable for class NotificationtestGetElementsV1ResponseMPayload: pkiNotificationtestID."); return new NotificationtestGetElementsV1ResponseMPayload(aObjVariableobject.Value, pkiNotificationtestID.Value.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs index ba9cfa507092..dd795c454755 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableClass.cs @@ -375,10 +375,10 @@ public override NullableClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (arrayItemsNullable.IsSet && arrayItemsNullable.Value == null) - throw new ArgumentNullException(nameof(arrayItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: array_items_nullable."); if (objectItemsNullable.IsSet && objectItemsNullable.Value == null) - throw new ArgumentNullException(nameof(objectItemsNullable), "Property is not nullable for class NullableClass."); + throw new JsonException("Property is not nullable for class NullableClass: object_items_nullable."); return new NullableClass(arrayAndItemsNullableProp, arrayItemsNullable, arrayNullableProp, booleanProp, dateProp, datetimeProp, integerProp, numberProp, objectAndItemsNullableProp, objectItemsNullable, objectNullableProp, stringProp); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs index dd205b2df274..dcbb486a9920 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NullableShape.cs @@ -193,10 +193,10 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); + throw new JsonException("Property is required for class NullableShape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); + throw new JsonException("Property is not nullable for class NullableShape: shapeType."); if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs index 209be6be1047..f9c0e035e424 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/NumberOnly.cs @@ -145,7 +145,7 @@ public override NumberOnly Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (justNumber.IsSet && justNumber.Value == null) - throw new ArgumentNullException(nameof(justNumber), "Property is not nullable for class NumberOnly."); + throw new JsonException("Property is not nullable for class NumberOnly: JustNumber."); return new NumberOnly(justNumber); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs index 7881bc48f66e..1cf2977d186e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ObjectWithDeprecatedFields.cs @@ -208,16 +208,16 @@ public override ObjectWithDeprecatedFields Read(ref Utf8JsonReader utf8JsonReade } if (bars.IsSet && bars.Value == null) - throw new ArgumentNullException(nameof(bars), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: bars."); if (deprecatedRef.IsSet && deprecatedRef.Value == null) - throw new ArgumentNullException(nameof(deprecatedRef), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: deprecatedRef."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: id."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class ObjectWithDeprecatedFields."); + throw new JsonException("Property is not nullable for class ObjectWithDeprecatedFields: uuid."); return new ObjectWithDeprecatedFields(bars, deprecatedRef, id, uuid); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs index 4d4a6167efc2..610909884b0f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Order.cs @@ -340,22 +340,22 @@ public override Order Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (complete.IsSet && complete.Value == null) - throw new ArgumentNullException(nameof(complete), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: complete."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: id."); if (petId.IsSet && petId.Value == null) - throw new ArgumentNullException(nameof(petId), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: petId."); if (quantity.IsSet && quantity.Value == null) - throw new ArgumentNullException(nameof(quantity), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: quantity."); if (shipDate.IsSet && shipDate.Value == null) - throw new ArgumentNullException(nameof(shipDate), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: shipDate."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Order."); + throw new JsonException("Property is not nullable for class Order: status."); return new Order(complete, id, petId, quantity, shipDate, status); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs index 448c538f19d8..99b0abbaa0f5 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OuterComposite.cs @@ -185,13 +185,13 @@ public override OuterComposite Read(ref Utf8JsonReader utf8JsonReader, Type type } if (myBoolean.IsSet && myBoolean.Value == null) - throw new ArgumentNullException(nameof(myBoolean), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_boolean."); if (myNumber.IsSet && myNumber.Value == null) - throw new ArgumentNullException(nameof(myNumber), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_number."); if (myString.IsSet && myString.Value == null) - throw new ArgumentNullException(nameof(myString), "Property is not nullable for class OuterComposite."); + throw new JsonException("Property is not nullable for class OuterComposite: my_string."); return new OuterComposite(myBoolean, myNumber, myString); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs index f268a60b3dcd..a5c2a2f12ef1 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ParentPet.cs @@ -118,10 +118,10 @@ public override ParentPet Read(ref Utf8JsonReader utf8JsonReader, Type typeToCon } if (!petType.IsSet) - throw new ArgumentException("Property is required for class ParentPet.", nameof(petType)); + throw new JsonException("Property is required for class ParentPet: pet_type."); if (petType.IsSet && petType.Value == null) - throw new ArgumentNullException(nameof(petType), "Property is not nullable for class ParentPet."); + throw new JsonException("Property is not nullable for class ParentPet: pet_type."); return new ParentPet(); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs index d8bb45eae944..33a3d6dece38 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pet.cs @@ -321,28 +321,28 @@ public override Pet Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!name.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(name)); + throw new JsonException("Property is required for class Pet: name."); if (!photoUrls.IsSet) - throw new ArgumentException("Property is required for class Pet.", nameof(photoUrls)); + throw new JsonException("Property is required for class Pet: photoUrls."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: name."); if (photoUrls.IsSet && photoUrls.Value == null) - throw new ArgumentNullException(nameof(photoUrls), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: photoUrls."); if (category.IsSet && category.Value == null) - throw new ArgumentNullException(nameof(category), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: category."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: id."); if (status.IsSet && status.Value == null) - throw new ArgumentNullException(nameof(status), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: status."); if (tags.IsSet && tags.Value == null) - throw new ArgumentNullException(nameof(tags), "Property is not nullable for class Pet."); + throw new JsonException("Property is not nullable for class Pet: tags."); return new Pet(name.Value, photoUrls.Value, category, id, status, tags); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs index 3d7b78a18292..8922e573ab0f 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Pig.cs @@ -193,10 +193,10 @@ public override Pig Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (!className.IsSet) - throw new ArgumentException("Property is required for class Pig.", nameof(className)); + throw new JsonException("Property is required for class Pig: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Pig."); + throw new JsonException("Property is not nullable for class Pig: className."); if (basquePig != null) return new Pig(basquePig); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs index f1b8095c949f..bb695bd00b79 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Quadrilateral.cs @@ -193,10 +193,10 @@ public override Quadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class Quadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class Quadrilateral: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class Quadrilateral."); + throw new JsonException("Property is not nullable for class Quadrilateral: quadrilateralType."); if (complexQuadrilateral != null) return new Quadrilateral(complexQuadrilateral); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs index 790693a4ee03..8d7a57c59526 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/QuadrilateralInterface.cs @@ -138,10 +138,10 @@ public override QuadrilateralInterface Read(ref Utf8JsonReader utf8JsonReader, T } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class QuadrilateralInterface.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class QuadrilateralInterface: quadrilateralType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class QuadrilateralInterface."); + throw new JsonException("Property is not nullable for class QuadrilateralInterface: quadrilateralType."); return new QuadrilateralInterface(quadrilateralType.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs index 6c679f4eadf0..3fbd226849a8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ReadOnlyFirst.cs @@ -203,10 +203,10 @@ public override ReadOnlyFirst Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (bar.IsSet && bar.Value == null) - throw new ArgumentNullException(nameof(bar), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: bar."); if (baz.IsSet && baz.Value == null) - throw new ArgumentNullException(nameof(baz), "Property is not nullable for class ReadOnlyFirst."); + throw new JsonException("Property is not nullable for class ReadOnlyFirst: baz."); return new ReadOnlyFirst(bar, baz); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs index a5e6b6f451b2..fae1bd2034ce 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RequiredClass.cs @@ -2077,136 +2077,136 @@ public override RequiredClass Read(ref Utf8JsonReader utf8JsonReader, Type typeT } if (!requiredNotNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_not_nullable_date_prop."); if (!requiredNotnullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_array_of_string."); if (!requiredNotnullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_boolean_prop."); if (!requiredNotnullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_datetime_prop."); if (!requiredNotnullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer."); if (!requiredNotnullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_integer_only."); if (!requiredNotnullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_enum_string."); if (!requiredNotnullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (!requiredNotnullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_string_prop."); if (!requiredNotnullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_notnullable_uuid."); if (!requiredNotnullableintegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNotnullableintegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_notnullableinteger_prop."); if (!requiredNullableArrayOfString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableArrayOfString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_array_of_string."); if (!requiredNullableBooleanProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableBooleanProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_boolean_prop."); if (!requiredNullableDateProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDateProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_date_prop."); if (!requiredNullableDatetimeProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableDatetimeProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_datetime_prop."); if (!requiredNullableEnumInteger.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumInteger)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer."); if (!requiredNullableEnumIntegerOnly.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumIntegerOnly)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_integer_only."); if (!requiredNullableEnumString.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableEnumString)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_enum_string."); if (!requiredNullableIntegerProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableIntegerProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_integer_prop."); if (!requiredNullableOuterEnumDefaultValue.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableOuterEnumDefaultValue)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_outerEnumDefaultValue."); if (!requiredNullableStringProp.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableStringProp)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_string_prop."); if (!requiredNullableUuid.IsSet) - throw new ArgumentException("Property is required for class RequiredClass.", nameof(requiredNullableUuid)); + throw new JsonException("Property is required for class RequiredClass: required_nullable_uuid."); if (requiredNotNullableDateProp.IsSet && requiredNotNullableDateProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotNullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_not_nullable_date_prop."); if (requiredNotnullableArrayOfString.IsSet && requiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_array_of_string."); if (requiredNotnullableBooleanProp.IsSet && requiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_boolean_prop."); if (requiredNotnullableDatetimeProp.IsSet && requiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_datetime_prop."); if (requiredNotnullableEnumInteger.IsSet && requiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer."); if (requiredNotnullableEnumIntegerOnly.IsSet && requiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_integer_only."); if (requiredNotnullableEnumString.IsSet && requiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_enum_string."); if (requiredNotnullableOuterEnumDefaultValue.IsSet && requiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_outerEnumDefaultValue."); if (requiredNotnullableStringProp.IsSet && requiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_string_prop."); if (requiredNotnullableUuid.IsSet && requiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullable_uuid."); if (requiredNotnullableintegerProp.IsSet && requiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(requiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: required_notnullableinteger_prop."); if (notRequiredNotnullableDateProp.IsSet && notRequiredNotnullableDateProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableDateProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullable_date_prop."); if (notRequiredNotnullableintegerProp.IsSet && notRequiredNotnullableintegerProp.Value == null) - throw new ArgumentNullException(nameof(notRequiredNotnullableintegerProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: not_required_notnullableinteger_prop."); if (notrequiredNotnullableArrayOfString.IsSet && notrequiredNotnullableArrayOfString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableArrayOfString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_array_of_string."); if (notrequiredNotnullableBooleanProp.IsSet && notrequiredNotnullableBooleanProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableBooleanProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_boolean_prop."); if (notrequiredNotnullableDatetimeProp.IsSet && notrequiredNotnullableDatetimeProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableDatetimeProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_datetime_prop."); if (notrequiredNotnullableEnumInteger.IsSet && notrequiredNotnullableEnumInteger.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumInteger), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer."); if (notrequiredNotnullableEnumIntegerOnly.IsSet && notrequiredNotnullableEnumIntegerOnly.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumIntegerOnly), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_integer_only."); if (notrequiredNotnullableEnumString.IsSet && notrequiredNotnullableEnumString.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableEnumString), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_enum_string."); if (notrequiredNotnullableOuterEnumDefaultValue.IsSet && notrequiredNotnullableOuterEnumDefaultValue.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableOuterEnumDefaultValue), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_outerEnumDefaultValue."); if (notrequiredNotnullableStringProp.IsSet && notrequiredNotnullableStringProp.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableStringProp), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_string_prop."); if (notrequiredNotnullableUuid.IsSet && notrequiredNotnullableUuid.Value == null) - throw new ArgumentNullException(nameof(notrequiredNotnullableUuid), "Property is not nullable for class RequiredClass."); + throw new JsonException("Property is not nullable for class RequiredClass: notrequired_notnullable_uuid."); return new RequiredClass(requiredNotNullableDateProp.Value.Value, requiredNotnullableArrayOfString.Value, requiredNotnullableBooleanProp.Value.Value, requiredNotnullableDatetimeProp.Value.Value, requiredNotnullableEnumInteger.Value.Value, requiredNotnullableEnumIntegerOnly.Value.Value, requiredNotnullableEnumString.Value.Value, requiredNotnullableOuterEnumDefaultValue.Value.Value, requiredNotnullableStringProp.Value, requiredNotnullableUuid.Value.Value, requiredNotnullableintegerProp.Value.Value, notRequiredNotnullableDateProp, notRequiredNotnullableintegerProp, notRequiredNullableDateProp, notRequiredNullableIntegerProp, notrequiredNotnullableArrayOfString, notrequiredNotnullableBooleanProp, notrequiredNotnullableDatetimeProp, notrequiredNotnullableEnumInteger, notrequiredNotnullableEnumIntegerOnly, notrequiredNotnullableEnumString, notrequiredNotnullableOuterEnumDefaultValue, notrequiredNotnullableStringProp, notrequiredNotnullableUuid, notrequiredNullableArrayOfString, notrequiredNullableBooleanProp, notrequiredNullableDatetimeProp, notrequiredNullableEnumInteger, notrequiredNullableEnumIntegerOnly, notrequiredNullableEnumString, notrequiredNullableOuterEnumDefaultValue, notrequiredNullableStringProp, notrequiredNullableUuid, requiredNullableArrayOfString.Value, requiredNullableBooleanProp.Value, requiredNullableDateProp.Value, requiredNullableDatetimeProp.Value, requiredNullableEnumInteger.Value, requiredNullableEnumIntegerOnly.Value, requiredNullableEnumString.Value, requiredNullableIntegerProp.Value, requiredNullableOuterEnumDefaultValue.Value, requiredNullableStringProp.Value, requiredNullableUuid.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs index 7ed1ea210629..533d484093fd 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Result.cs @@ -188,13 +188,13 @@ public override Result Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class Result."); + throw new JsonException("Property is not nullable for class Result: uuid."); return new Result(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs index 6870e58a4e5b..c44b71b7659b 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Return.cs @@ -191,19 +191,19 @@ public override Return Read(ref Utf8JsonReader utf8JsonReader, Type typeToConver } if (!varLock.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varLock)); + throw new JsonException("Property is required for class Return: lock."); if (!varAbstract.IsSet) - throw new ArgumentException("Property is required for class Return.", nameof(varAbstract)); + throw new JsonException("Property is required for class Return: abstract."); if (varLock.IsSet && varLock.Value == null) - throw new ArgumentNullException(nameof(varLock), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: lock."); if (varReturn.IsSet && varReturn.Value == null) - throw new ArgumentNullException(nameof(varReturn), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: return."); if (varUnsafe.IsSet && varUnsafe.Value == null) - throw new ArgumentNullException(nameof(varUnsafe), "Property is not nullable for class Return."); + throw new JsonException("Property is not nullable for class Return: unsafe."); return new Return(varLock.Value, varAbstract.Value, varReturn, varUnsafe); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs index 88ac872eba81..455206911cd3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHash.cs @@ -165,10 +165,10 @@ public override RolesReportsHash Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (role.IsSet && role.Value == null) - throw new ArgumentNullException(nameof(role), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role."); if (roleUuid.IsSet && roleUuid.Value == null) - throw new ArgumentNullException(nameof(roleUuid), "Property is not nullable for class RolesReportsHash."); + throw new JsonException("Property is not nullable for class RolesReportsHash: role_uuid."); return new RolesReportsHash(role, roleUuid); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs index 7ac7e71cbc15..367680a1a300 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/RolesReportsHashRole.cs @@ -145,7 +145,7 @@ public override RolesReportsHashRole Read(ref Utf8JsonReader utf8JsonReader, Typ } if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class RolesReportsHashRole."); + throw new JsonException("Property is not nullable for class RolesReportsHashRole: name."); return new RolesReportsHashRole(name); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs index fc2982004601..d8eac4a684ce 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ScaleneTriangle.cs @@ -151,16 +151,16 @@ public override ScaleneTriangle Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(shapeType)); + throw new JsonException("Property is required for class ScaleneTriangle: shapeType."); if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class ScaleneTriangle.", nameof(triangleType)); + throw new JsonException("Property is required for class ScaleneTriangle: triangleType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: shapeType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class ScaleneTriangle."); + throw new JsonException("Property is not nullable for class ScaleneTriangle: triangleType."); return new ScaleneTriangle(shapeType.Value, triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs index 7a2dd62962fb..49b8e42ab4f9 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Shape.cs @@ -193,10 +193,10 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); + throw new JsonException("Property is required for class Shape: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); + throw new JsonException("Property is not nullable for class Shape: shapeType."); if (quadrilateral != null) return new Shape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs index 54079932ecbf..3fce1535c904 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeInterface.cs @@ -138,10 +138,10 @@ public override ShapeInterface Read(ref Utf8JsonReader utf8JsonReader, Type type } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeInterface.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeInterface: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeInterface."); + throw new JsonException("Property is not nullable for class ShapeInterface: shapeType."); return new ShapeInterface(shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs index 52a892aeb9e1..fa998a6ecdd7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ShapeOrNull.cs @@ -193,10 +193,10 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC } if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); + throw new JsonException("Property is required for class ShapeOrNull: shapeType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); + throw new JsonException("Property is not nullable for class ShapeOrNull: shapeType."); if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs index 45ef5585c1a2..179b7c602d12 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SimpleQuadrilateral.cs @@ -151,16 +151,16 @@ public override SimpleQuadrilateral Read(ref Utf8JsonReader utf8JsonReader, Type } if (!quadrilateralType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(quadrilateralType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: quadrilateralType."); if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class SimpleQuadrilateral.", nameof(shapeType)); + throw new JsonException("Property is required for class SimpleQuadrilateral: shapeType."); if (quadrilateralType.IsSet && quadrilateralType.Value == null) - throw new ArgumentNullException(nameof(quadrilateralType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: quadrilateralType."); if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class SimpleQuadrilateral."); + throw new JsonException("Property is not nullable for class SimpleQuadrilateral: shapeType."); return new SimpleQuadrilateral(quadrilateralType.Value, shapeType.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs index b6bcd6886413..51235500e5cc 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/SpecialModelName.cs @@ -165,10 +165,10 @@ public override SpecialModelName Read(ref Utf8JsonReader utf8JsonReader, Type ty } if (varSpecialModelName.IsSet && varSpecialModelName.Value == null) - throw new ArgumentNullException(nameof(varSpecialModelName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: _special_model.name_."); if (specialPropertyName.IsSet && specialPropertyName.Value == null) - throw new ArgumentNullException(nameof(specialPropertyName), "Property is not nullable for class SpecialModelName."); + throw new JsonException("Property is not nullable for class SpecialModelName: $special[property.name]."); return new SpecialModelName(varSpecialModelName, specialPropertyName); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs index d0d4298cab55..04b4e2a7feb8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Tag.cs @@ -165,10 +165,10 @@ public override Tag Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: id."); if (name.IsSet && name.Value == null) - throw new ArgumentNullException(nameof(name), "Property is not nullable for class Tag."); + throw new JsonException("Property is not nullable for class Tag: name."); return new Tag(id, name); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs index db057bf9b74f..77efc5ff13d4 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordList.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordList Read(ref Utf8JsonReader utf8Jso } if (value.IsSet && value.Value == null) - throw new ArgumentNullException(nameof(value), "Property is not nullable for class TestCollectionEndingWithWordList."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordList: value."); return new TestCollectionEndingWithWordList(value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs index e7b97dd14788..d58df26387cf 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestCollectionEndingWithWordListObject.cs @@ -145,7 +145,7 @@ public override TestCollectionEndingWithWordListObject Read(ref Utf8JsonReader u } if (testCollectionEndingWithWordList.IsSet && testCollectionEndingWithWordList.Value == null) - throw new ArgumentNullException(nameof(testCollectionEndingWithWordList), "Property is not nullable for class TestCollectionEndingWithWordListObject."); + throw new JsonException("Property is not nullable for class TestCollectionEndingWithWordListObject: TestCollectionEndingWithWordList."); return new TestCollectionEndingWithWordListObject(testCollectionEndingWithWordList); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs index a28ece650979..39a686cd928e 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestDescendants.cs @@ -241,16 +241,16 @@ public override TestDescendants Read(ref Utf8JsonReader utf8JsonReader, Type typ } if (!alternativeName.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(alternativeName)); + throw new JsonException("Property is required for class TestDescendants: alternativeName."); if (!objectType.IsSet) - throw new ArgumentException("Property is required for class TestDescendants.", nameof(objectType)); + throw new JsonException("Property is required for class TestDescendants: objectType."); if (alternativeName.IsSet && alternativeName.Value == null) - throw new ArgumentNullException(nameof(alternativeName), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: alternativeName."); if (objectType.IsSet && objectType.Value == null) - throw new ArgumentNullException(nameof(objectType), "Property is not nullable for class TestDescendants."); + throw new JsonException("Property is not nullable for class TestDescendants: objectType."); return new TestDescendants(alternativeName.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs index b2ef6e096109..1e931bd94731 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestInlineFreeformAdditionalPropertiesRequest.cs @@ -145,7 +145,7 @@ public override TestInlineFreeformAdditionalPropertiesRequest Read(ref Utf8JsonR } if (someProperty.IsSet && someProperty.Value == null) - throw new ArgumentNullException(nameof(someProperty), "Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest."); + throw new JsonException("Property is not nullable for class TestInlineFreeformAdditionalPropertiesRequest: someProperty."); return new TestInlineFreeformAdditionalPropertiesRequest(someProperty); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs index e367448c907f..5da58612b7ef 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TestResult.cs @@ -187,13 +187,13 @@ public override TestResult Read(ref Utf8JsonReader utf8JsonReader, Type typeToCo } if (code.IsSet && code.Value == null) - throw new ArgumentNullException(nameof(code), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: code."); if (data.IsSet && data.Value == null) - throw new ArgumentNullException(nameof(data), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: data."); if (uuid.IsSet && uuid.Value == null) - throw new ArgumentNullException(nameof(uuid), "Property is not nullable for class TestResult."); + throw new JsonException("Property is not nullable for class TestResult: uuid."); return new TestResult(code, data, uuid); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs index 9e1ae42200c6..1ef3b35e8e9c 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Triangle.cs @@ -214,10 +214,10 @@ public override Triangle Read(ref Utf8JsonReader utf8JsonReader, Type typeToConv } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class Triangle.", nameof(triangleType)); + throw new JsonException("Property is required for class Triangle: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class Triangle."); + throw new JsonException("Property is not nullable for class Triangle: triangleType."); if (equilateralTriangle != null) return new Triangle(equilateralTriangle); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs index afe9457b01a5..ed4592635d34 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/TriangleInterface.cs @@ -138,10 +138,10 @@ public override TriangleInterface Read(ref Utf8JsonReader utf8JsonReader, Type t } if (!triangleType.IsSet) - throw new ArgumentException("Property is required for class TriangleInterface.", nameof(triangleType)); + throw new JsonException("Property is required for class TriangleInterface: triangleType."); if (triangleType.IsSet && triangleType.Value == null) - throw new ArgumentNullException(nameof(triangleType), "Property is not nullable for class TriangleInterface."); + throw new JsonException("Property is not nullable for class TriangleInterface: triangleType."); return new TriangleInterface(triangleType.Value); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs index dd4db4f456f1..6371c3897a76 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/User.cs @@ -370,31 +370,31 @@ public override User Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert, } if (email.IsSet && email.Value == null) - throw new ArgumentNullException(nameof(email), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: email."); if (firstName.IsSet && firstName.Value == null) - throw new ArgumentNullException(nameof(firstName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: firstName."); if (id.IsSet && id.Value == null) - throw new ArgumentNullException(nameof(id), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: id."); if (lastName.IsSet && lastName.Value == null) - throw new ArgumentNullException(nameof(lastName), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: lastName."); if (objectWithNoDeclaredProps.IsSet && objectWithNoDeclaredProps.Value == null) - throw new ArgumentNullException(nameof(objectWithNoDeclaredProps), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: objectWithNoDeclaredProps."); if (password.IsSet && password.Value == null) - throw new ArgumentNullException(nameof(password), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: password."); if (phone.IsSet && phone.Value == null) - throw new ArgumentNullException(nameof(phone), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: phone."); if (userStatus.IsSet && userStatus.Value == null) - throw new ArgumentNullException(nameof(userStatus), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: userStatus."); if (username.IsSet && username.Value == null) - throw new ArgumentNullException(nameof(username), "Property is not nullable for class User."); + throw new JsonException("Property is not nullable for class User: username."); return new User(anyTypeProp, anyTypePropNullable, email, firstName, id, lastName, objectWithNoDeclaredProps, objectWithNoDeclaredPropsNullable, password, phone, userStatus, username); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs index c1abfbfd12c0..a862447465b1 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Whale.cs @@ -178,16 +178,16 @@ public override Whale Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Whale.", nameof(className)); + throw new JsonException("Property is required for class Whale: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: className."); if (hasBaleen.IsSet && hasBaleen.Value == null) - throw new ArgumentNullException(nameof(hasBaleen), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasBaleen."); if (hasTeeth.IsSet && hasTeeth.Value == null) - throw new ArgumentNullException(nameof(hasTeeth), "Property is not nullable for class Whale."); + throw new JsonException("Property is not nullable for class Whale: hasTeeth."); return new Whale(className.Value, hasBaleen, hasTeeth); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs index c6144e93c73d..4d6c01689db7 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/Zebra.cs @@ -245,13 +245,13 @@ public override Zebra Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert } if (!className.IsSet) - throw new ArgumentException("Property is required for class Zebra.", nameof(className)); + throw new JsonException("Property is required for class Zebra: className."); if (className.IsSet && className.Value == null) - throw new ArgumentNullException(nameof(className), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: className."); if (type.IsSet && type.Value == null) - throw new ArgumentNullException(nameof(type), "Property is not nullable for class Zebra."); + throw new JsonException("Property is not nullable for class Zebra: type."); return new Zebra(className.Value, type); } diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs index 4ce3561c85ec..44b24d2dad67 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/ZeroBasedEnumClass.cs @@ -218,7 +218,7 @@ public override ZeroBasedEnumClass Read(ref Utf8JsonReader utf8JsonReader, Type } if (zeroBasedEnum.IsSet && zeroBasedEnum.Value == null) - throw new ArgumentNullException(nameof(zeroBasedEnum), "Property is not nullable for class ZeroBasedEnumClass."); + throw new JsonException("Property is not nullable for class ZeroBasedEnumClass: ZeroBasedEnum."); return new ZeroBasedEnumClass(zeroBasedEnum); } From f201f33b645afa475e1a5a4e6df3d08532797fc3 Mon Sep 17 00:00:00 2001 From: Subham Ashok <65991579+SubhamAshok@users.noreply.github.com> Date: Mon, 21 Sep 2026 11:23:44 +0530 Subject: [PATCH 2/6] [BUG][JAVA] Add @Nullable to resttemplate api method parameters (#24970) * [BUG][JAVA] Add @Nullable to resttemplate api method parameters Fixes #23656 by using nullableArgumentForApi in resttemplate api.mustache. This ensures optional and nullable operation parameters are annotated with @Nullable when useJspecify is enabled, matching webclient and restclient. * Update resttemplate samples --- .../Java/libraries/resttemplate/api.mustache | 4 +- .../codegen/java/JavaClientCodegenTest.java | 32 ++++---- .../org/openapitools/client/api/BodyApi.java | 36 ++++----- .../org/openapitools/client/api/FormApi.java | 12 +-- .../openapitools/client/api/HeaderApi.java | 4 +- .../org/openapitools/client/api/PathApi.java | 4 +- .../org/openapitools/client/api/QueryApi.java | 44 +++++----- .../org/openapitools/client/api/UserApi.java | 4 +- .../org/openapitools/client/api/PetApi.java | 32 ++++---- .../org/openapitools/client/api/StoreApi.java | 12 +-- .../org/openapitools/client/api/UserApi.java | 28 +++---- .../org/openapitools/client/api/PetApi.java | 4 +- .../org/openapitools/client/api/FooApi.java | 4 +- .../openapitools/client/api/UploadApi.java | 8 +- .../org/openapitools/client/api/PetApi.java | 4 +- .../org/openapitools/client/api/PetApi.java | 32 ++++---- .../org/openapitools/client/api/StoreApi.java | 12 +-- .../org/openapitools/client/api/UserApi.java | 28 +++---- .../org/openapitools/client/api/PetApi.java | 32 ++++---- .../org/openapitools/client/api/StoreApi.java | 12 +-- .../org/openapitools/client/api/UserApi.java | 28 +++---- .../client/api/AnotherFakeApi.java | 4 +- .../org/openapitools/client/api/FakeApi.java | 80 +++++++++---------- .../client/api/FakeClassnameTags123Api.java | 4 +- .../org/openapitools/client/api/PetApi.java | 36 ++++----- .../org/openapitools/client/api/StoreApi.java | 12 +-- .../org/openapitools/client/api/UserApi.java | 28 +++---- .../client/api/AnotherFakeApi.java | 4 +- .../org/openapitools/client/api/FakeApi.java | 80 +++++++++---------- .../client/api/FakeClassnameTags123Api.java | 4 +- .../org/openapitools/client/api/PetApi.java | 36 ++++----- .../org/openapitools/client/api/StoreApi.java | 12 +-- .../org/openapitools/client/api/UserApi.java | 28 +++---- 33 files changed, 350 insertions(+), 354 deletions(-) diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/api.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/api.mustache index eb0f4b50c21c..2e3c78db4fe7 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/api.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/resttemplate/api.mustache @@ -76,7 +76,7 @@ public class {{classname}} extends BaseApi { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public {{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.Resource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientException { + public {{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}} {{/returnType}}{{^returnType}}void {{/returnType}}{{operationId}}({{#allParams}}{{>nullableArgumentForApi}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientException { {{#returnType}} return {{operationId}}WithHttpInfo({{#allParams}}{{paramName}}{{^-last}}, {{/-last}}{{/allParams}}).getBody(); {{/returnType}} @@ -107,7 +107,7 @@ public class {{classname}} extends BaseApi { {{#isDeprecated}} @Deprecated {{/isDeprecated}} - public ResponseEntity<{{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{#isFile}}{{#useAbstractionForFiles}}{{#collectionFormat}}java.util.Collection{{/collectionFormat}}{{^collectionFormat}}org.springframework.core.io.Resource{{/collectionFormat}}{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{dataType}}}{{/useAbstractionForFiles}}{{/isFile}}{{^isFile}}{{{dataType}}}{{/isFile}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientException { + public ResponseEntity<{{#returnType}}{{#isResponseFile}}{{#useAbstractionForFiles}}org.springframework.core.io.Resource{{/useAbstractionForFiles}}{{^useAbstractionForFiles}}{{{.}}}{{/useAbstractionForFiles}}{{/isResponseFile}}{{^isResponseFile}}{{{.}}}{{/isResponseFile}}{{/returnType}}{{^returnType}}Void{{/returnType}}> {{operationId}}WithHttpInfo({{#allParams}}{{>nullableArgumentForApi}} {{paramName}}{{^-last}}, {{/-last}}{{/allParams}}) throws RestClientException { Object localVarPostBody = {{#bodyParam}}{{paramName}}{{/bodyParam}}{{^bodyParam}}null{{/bodyParam}}; {{#allParams}}{{#required}} // verify the required parameter '{{paramName}}' is set diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java index 2b30f532bd71..0c3d059905ef 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaClientCodegenTest.java @@ -4850,15 +4850,13 @@ public void testJspecify(String library, int springBootVersion, boolean hasJspec "private @Nullable VirusScanEnum virusScan", "FileContent.Builder virusScan(@Nullable VirusScanEnum virusScan)" ); - if (!RESTTEMPLATE.equals(library)) { - JavaFileAssert.assertThat(files.get("FooApi.java")) - .fileContains("fooDtParamGet(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)"); - JavaFileAssert.assertThat(files.get("FooApi.java")) - .fileContains( - "import org.jspecify.annotations.Nullable;", - "(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)" - ); - } + JavaFileAssert.assertThat(files.get("FooApi.java")) + .fileContains("fooDtParamGet(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)"); + JavaFileAssert.assertThat(files.get("FooApi.java")) + .fileContains( + "import org.jspecify.annotations.Nullable;", + "(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)" + ); JavaFileAssert.assertThat(files.get("api/package-info.java")) .fileContains("@org.jspecify.annotations.NullMarked"); JavaFileAssert.assertThat(files.get("model/package-info.java")) @@ -4918,15 +4916,13 @@ public void testJspecify_openapiNullable(String library, int springBootVersion, "public Foo(@JsonProperty(JSON_PROPERTY_DT) java.time.@Nullable Instant dt, @JsonProperty(JSON_PROPERTY_NULLABLE_DT) java.time.@Nullable Instant nullableDt, @JsonProperty(JSON_PROPERTY_BINARY) @Nullable File binary, @JsonProperty(JSON_PROPERTY_NULLABLE_BINARY) @Nullable File nullableBinary, @JsonProperty(JSON_PROPERTY_LIST_OF_DT) @Nullable List listOfDt, @JsonProperty(JSON_PROPERTY_LIST_MIN_INTEMS) @Nullable List listMinIntems, @JsonProperty(JSON_PROPERTY_NULLABLE_LIST_MIN_INTEMS) @Nullable List nullableListMinIntems, @JsonProperty(JSON_PROPERTY_REQUIRED_DT) java.time.Instant requiredDt, @JsonProperty(JSON_PROPERTY_NUMBER) java.math.@Nullable BigDecimal number, @JsonProperty(JSON_PROPERTY_NULLABLE_NUMBER) java.math.@Nullable BigDecimal nullableNumber, @JsonProperty(JSON_PROPERTY_COLOR) @Nullable String color, @JsonProperty(JSON_PROPERTY_REQUIRED_COLOR) String requiredColor, @JsonProperty(JSON_PROPERTY_NULLABLE_COLOR) @Nullable String nullableColor) {" ); } - if (!RESTTEMPLATE.equals(library)) { - JavaFileAssert.assertThat(files.get("FooApi.java")) - .fileContains("fooDtParamGet(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)"); - JavaFileAssert.assertThat(files.get("FooApi.java")) - .fileContains( - "import org.jspecify.annotations.Nullable;", - "(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)" - ); - } + JavaFileAssert.assertThat(files.get("FooApi.java")) + .fileContains("fooDtParamGet(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)"); + JavaFileAssert.assertThat(files.get("FooApi.java")) + .fileContains( + "import org.jspecify.annotations.Nullable;", + "(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color)" + ); JavaFileAssert.assertThat(files.get("api/package-info.java")) .fileContains("@org.jspecify.annotations.NullMarked"); JavaFileAssert.assertThat(files.get("model/package-info.java")) diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java index d0559756a330..d13fb9805cab 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/BodyApi.java @@ -87,7 +87,7 @@ public ResponseEntity testBinaryGifWithHttpInfo() throws RestClientExcepti * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testBodyApplicationOctetstreamBinary(File body) throws RestClientException { + public String testBodyApplicationOctetstreamBinary(@javax.annotation.Nullable File body) throws RestClientException { return testBodyApplicationOctetstreamBinaryWithHttpInfo(body).getBody(); } @@ -99,7 +99,7 @@ public String testBodyApplicationOctetstreamBinary(File body) throws RestClientE * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyApplicationOctetstreamBinaryWithHttpInfo(File body) throws RestClientException { + public ResponseEntity testBodyApplicationOctetstreamBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws RestClientException { Object localVarPostBody = body; @@ -130,7 +130,7 @@ public ResponseEntity testBodyApplicationOctetstreamBinaryWithHttpInfo(F * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testBodyMultipartFormdataArrayOfBinary(List files) throws RestClientException { + public String testBodyMultipartFormdataArrayOfBinary(@javax.annotation.Nonnull List files) throws RestClientException { return testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(files).getBody(); } @@ -142,7 +142,7 @@ public String testBodyMultipartFormdataArrayOfBinary(List files) throws Re * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(List files) throws RestClientException { + public ResponseEntity testBodyMultipartFormdataArrayOfBinaryWithHttpInfo(@javax.annotation.Nonnull List files) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'files' is set @@ -181,7 +181,7 @@ public ResponseEntity testBodyMultipartFormdataArrayOfBinaryWithHttpInfo * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testBodyMultipartFormdataSingleBinary(File myFile) throws RestClientException { + public String testBodyMultipartFormdataSingleBinary(@javax.annotation.Nullable File myFile) throws RestClientException { return testBodyMultipartFormdataSingleBinaryWithHttpInfo(myFile).getBody(); } @@ -193,7 +193,7 @@ public String testBodyMultipartFormdataSingleBinary(File myFile) throws RestClie * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyMultipartFormdataSingleBinaryWithHttpInfo(File myFile) throws RestClientException { + public ResponseEntity testBodyMultipartFormdataSingleBinaryWithHttpInfo(@javax.annotation.Nullable File myFile) throws RestClientException { Object localVarPostBody = null; @@ -227,7 +227,7 @@ public ResponseEntity testBodyMultipartFormdataSingleBinaryWithHttpInfo( * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet testEchoBodyAllOfPet(Pet pet) throws RestClientException { + public Pet testEchoBodyAllOfPet(@javax.annotation.Nullable Pet pet) throws RestClientException { return testEchoBodyAllOfPetWithHttpInfo(pet).getBody(); } @@ -239,7 +239,7 @@ public Pet testEchoBodyAllOfPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyAllOfPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity testEchoBodyAllOfPetWithHttpInfo(@javax.annotation.Nullable Pet pet) throws RestClientException { Object localVarPostBody = pet; @@ -270,7 +270,7 @@ public ResponseEntity testEchoBodyAllOfPetWithHttpInfo(Pet pet) throws Rest * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testEchoBodyFreeFormObjectResponseString(Object body) throws RestClientException { + public String testEchoBodyFreeFormObjectResponseString(@javax.annotation.Nullable Object body) throws RestClientException { return testEchoBodyFreeFormObjectResponseStringWithHttpInfo(body).getBody(); } @@ -282,7 +282,7 @@ public String testEchoBodyFreeFormObjectResponseString(Object body) throws RestC * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyFreeFormObjectResponseStringWithHttpInfo(Object body) throws RestClientException { + public ResponseEntity testEchoBodyFreeFormObjectResponseStringWithHttpInfo(@javax.annotation.Nullable Object body) throws RestClientException { Object localVarPostBody = body; @@ -313,7 +313,7 @@ public ResponseEntity testEchoBodyFreeFormObjectResponseStringWithHttpIn * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet testEchoBodyPet(Pet pet) throws RestClientException { + public Pet testEchoBodyPet(@javax.annotation.Nullable Pet pet) throws RestClientException { return testEchoBodyPetWithHttpInfo(pet).getBody(); } @@ -325,7 +325,7 @@ public Pet testEchoBodyPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity testEchoBodyPetWithHttpInfo(@javax.annotation.Nullable Pet pet) throws RestClientException { Object localVarPostBody = pet; @@ -356,7 +356,7 @@ public ResponseEntity testEchoBodyPetWithHttpInfo(Pet pet) throws RestClien * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testEchoBodyPetResponseString(Pet pet) throws RestClientException { + public String testEchoBodyPetResponseString(@javax.annotation.Nullable Pet pet) throws RestClientException { return testEchoBodyPetResponseStringWithHttpInfo(pet).getBody(); } @@ -368,7 +368,7 @@ public String testEchoBodyPetResponseString(Pet pet) throws RestClientException * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyPetResponseStringWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity testEchoBodyPetResponseStringWithHttpInfo(@javax.annotation.Nullable Pet pet) throws RestClientException { Object localVarPostBody = pet; @@ -399,7 +399,7 @@ public ResponseEntity testEchoBodyPetResponseStringWithHttpInfo(Pet pet) * @return StringEnumRef * @throws RestClientException if an error occurs while attempting to invoke the API */ - public StringEnumRef testEchoBodyStringEnum(String body) throws RestClientException { + public StringEnumRef testEchoBodyStringEnum(@javax.annotation.Nullable String body) throws RestClientException { return testEchoBodyStringEnumWithHttpInfo(body).getBody(); } @@ -411,7 +411,7 @@ public StringEnumRef testEchoBodyStringEnum(String body) throws RestClientExcept * @return ResponseEntity<StringEnumRef> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyStringEnumWithHttpInfo(String body) throws RestClientException { + public ResponseEntity testEchoBodyStringEnumWithHttpInfo(@javax.annotation.Nullable String body) throws RestClientException { Object localVarPostBody = body; @@ -442,7 +442,7 @@ public ResponseEntity testEchoBodyStringEnumWithHttpInfo(String b * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testEchoBodyTagResponseString(Tag tag) throws RestClientException { + public String testEchoBodyTagResponseString(@javax.annotation.Nullable Tag tag) throws RestClientException { return testEchoBodyTagResponseStringWithHttpInfo(tag).getBody(); } @@ -454,7 +454,7 @@ public String testEchoBodyTagResponseString(Tag tag) throws RestClientException * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEchoBodyTagResponseStringWithHttpInfo(Tag tag) throws RestClientException { + public ResponseEntity testEchoBodyTagResponseStringWithHttpInfo(@javax.annotation.Nullable Tag tag) throws RestClientException { Object localVarPostBody = tag; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/FormApi.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/FormApi.java index 3dd8b83c280c..9767fb439550 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/FormApi.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/FormApi.java @@ -47,7 +47,7 @@ public FormApi(ApiClient apiClient) { * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanForm, String stringForm) throws RestClientException { + public String testFormIntegerBooleanString(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws RestClientException { return testFormIntegerBooleanStringWithHttpInfo(integerForm, booleanForm, stringForm).getBody(); } @@ -61,7 +61,7 @@ public String testFormIntegerBooleanString(Integer integerForm, Boolean booleanF * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testFormIntegerBooleanStringWithHttpInfo(Integer integerForm, Boolean booleanForm, String stringForm) throws RestClientException { + public ResponseEntity testFormIntegerBooleanStringWithHttpInfo(@javax.annotation.Nullable Integer integerForm, @javax.annotation.Nullable Boolean booleanForm, @javax.annotation.Nullable String stringForm) throws RestClientException { Object localVarPostBody = null; @@ -99,7 +99,7 @@ public ResponseEntity testFormIntegerBooleanStringWithHttpInfo(Integer i * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marker) throws RestClientException { + public String testFormObjectMultipart(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws RestClientException { return testFormObjectMultipartWithHttpInfo(marker).getBody(); } @@ -111,7 +111,7 @@ public String testFormObjectMultipart(TestFormObjectMultipartRequestMarker marke * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testFormObjectMultipartWithHttpInfo(TestFormObjectMultipartRequestMarker marker) throws RestClientException { + public ResponseEntity testFormObjectMultipartWithHttpInfo(@javax.annotation.Nonnull TestFormObjectMultipartRequestMarker marker) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'marker' is set @@ -155,7 +155,7 @@ public ResponseEntity testFormObjectMultipartWithHttpInfo(TestFormObject * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testFormOneof(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws RestClientException { + public String testFormOneof(@javax.annotation.Nullable String form1, @javax.annotation.Nullable Integer form2, @javax.annotation.Nullable String form3, @javax.annotation.Nullable Boolean form4, @javax.annotation.Nullable Long id, @javax.annotation.Nullable String name) throws RestClientException { return testFormOneofWithHttpInfo(form1, form2, form3, form4, id, name).getBody(); } @@ -172,7 +172,7 @@ public String testFormOneof(String form1, Integer form2, String form3, Boolean f * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testFormOneofWithHttpInfo(String form1, Integer form2, String form3, Boolean form4, Long id, String name) throws RestClientException { + public ResponseEntity testFormOneofWithHttpInfo(@javax.annotation.Nullable String form1, @javax.annotation.Nullable Integer form2, @javax.annotation.Nullable String form3, @javax.annotation.Nullable Boolean form4, @javax.annotation.Nullable Long id, @javax.annotation.Nullable String name) throws RestClientException { Object localVarPostBody = null; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/HeaderApi.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/HeaderApi.java index 2211c839c8fc..2f322b15622c 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/HeaderApi.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/HeaderApi.java @@ -49,7 +49,7 @@ public HeaderApi(ApiClient apiClient) { * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws RestClientException { + public String testHeaderIntegerBooleanStringEnums(@javax.annotation.Nullable Integer integerHeader, @javax.annotation.Nullable Boolean booleanHeader, @javax.annotation.Nullable String stringHeader, @javax.annotation.Nullable String enumNonrefStringHeader, @javax.annotation.Nullable StringEnumRef enumRefStringHeader) throws RestClientException { return testHeaderIntegerBooleanStringEnumsWithHttpInfo(integerHeader, booleanHeader, stringHeader, enumNonrefStringHeader, enumRefStringHeader).getBody(); } @@ -65,7 +65,7 @@ public String testHeaderIntegerBooleanStringEnums(Integer integerHeader, Boolean * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testHeaderIntegerBooleanStringEnumsWithHttpInfo(Integer integerHeader, Boolean booleanHeader, String stringHeader, String enumNonrefStringHeader, StringEnumRef enumRefStringHeader) throws RestClientException { + public ResponseEntity testHeaderIntegerBooleanStringEnumsWithHttpInfo(@javax.annotation.Nullable Integer integerHeader, @javax.annotation.Nullable Boolean booleanHeader, @javax.annotation.Nullable String stringHeader, @javax.annotation.Nullable String enumNonrefStringHeader, @javax.annotation.Nullable StringEnumRef enumRefStringHeader) throws RestClientException { Object localVarPostBody = null; diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/PathApi.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/PathApi.java index be5a1fde8c03..5fc7e6d2adc5 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/PathApi.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/PathApi.java @@ -48,7 +48,7 @@ public PathApi(ApiClient apiClient) { * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws RestClientException { + public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws RestClientException { return testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(pathString, pathInteger, enumNonrefStringPath, enumRefStringPath).getBody(); } @@ -63,7 +63,7 @@ public String testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnu * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(String pathString, Integer pathInteger, String enumNonrefStringPath, StringEnumRef enumRefStringPath) throws RestClientException { + public ResponseEntity testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPathWithHttpInfo(@javax.annotation.Nonnull String pathString, @javax.annotation.Nonnull Integer pathInteger, @javax.annotation.Nonnull String enumNonrefStringPath, @javax.annotation.Nonnull StringEnumRef enumRefStringPath) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'pathString' is set diff --git a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/QueryApi.java b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/QueryApi.java index 38d533ff3628..5aab48f7a27f 100644 --- a/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/QueryApi.java +++ b/samples/client/echo_api/java/resttemplate/src/main/java/org/openapitools/client/api/QueryApi.java @@ -52,7 +52,7 @@ public QueryApi(ApiClient apiClient) { * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws RestClientException { + public String testEnumRefString(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery) throws RestClientException { return testEnumRefStringWithHttpInfo(enumNonrefStringQuery, enumRefStringQuery).getBody(); } @@ -65,7 +65,7 @@ public String testEnumRefString(String enumNonrefStringQuery, StringEnumRef enum * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEnumRefStringWithHttpInfo(String enumNonrefStringQuery, StringEnumRef enumRefStringQuery) throws RestClientException { + public ResponseEntity testEnumRefStringWithHttpInfo(@javax.annotation.Nullable String enumNonrefStringQuery, @javax.annotation.Nullable StringEnumRef enumRefStringQuery) throws RestClientException { Object localVarPostBody = null; @@ -100,7 +100,7 @@ public ResponseEntity testEnumRefStringWithHttpInfo(String enumNonrefStr * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryDatetimeDateString(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery) throws RestClientException { + public String testQueryDatetimeDateString(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery) throws RestClientException { return testQueryDatetimeDateStringWithHttpInfo(datetimeQuery, dateQuery, stringQuery).getBody(); } @@ -114,7 +114,7 @@ public String testQueryDatetimeDateString(OffsetDateTime datetimeQuery, LocalDat * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryDatetimeDateStringWithHttpInfo(OffsetDateTime datetimeQuery, LocalDate dateQuery, String stringQuery) throws RestClientException { + public ResponseEntity testQueryDatetimeDateStringWithHttpInfo(@javax.annotation.Nullable OffsetDateTime datetimeQuery, @javax.annotation.Nullable LocalDate dateQuery, @javax.annotation.Nullable String stringQuery) throws RestClientException { Object localVarPostBody = null; @@ -150,7 +150,7 @@ public ResponseEntity testQueryDatetimeDateStringWithHttpInfo(OffsetDate * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryIntegerBooleanString(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws RestClientException { + public String testQueryIntegerBooleanString(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery) throws RestClientException { return testQueryIntegerBooleanStringWithHttpInfo(integerQuery, booleanQuery, stringQuery).getBody(); } @@ -164,7 +164,7 @@ public String testQueryIntegerBooleanString(Integer integerQuery, Boolean boolea * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryIntegerBooleanStringWithHttpInfo(Integer integerQuery, Boolean booleanQuery, String stringQuery) throws RestClientException { + public ResponseEntity testQueryIntegerBooleanStringWithHttpInfo(@javax.annotation.Nullable Integer integerQuery, @javax.annotation.Nullable Boolean booleanQuery, @javax.annotation.Nullable String stringQuery) throws RestClientException { Object localVarPostBody = null; @@ -198,7 +198,7 @@ public ResponseEntity testQueryIntegerBooleanStringWithHttpInfo(Integer * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleDeepObjectExplodeTrueObject(Pet queryObject) throws RestClientException { + public String testQueryStyleDeepObjectExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws RestClientException { return testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(queryObject).getBody(); } @@ -210,7 +210,7 @@ public String testQueryStyleDeepObjectExplodeTrueObject(Pet queryObject) throws * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(Pet queryObject) throws RestClientException { + public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectWithHttpInfo(@javax.annotation.Nullable Pet queryObject) throws RestClientException { Object localVarPostBody = null; @@ -249,7 +249,7 @@ public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectWithHttpI * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientException { + public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientException { return testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(queryObject).getBody(); } @@ -261,7 +261,7 @@ public String testQueryStyleDeepObjectExplodeTrueObjectAllOf(TestQueryStyleDeepO * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientException { + public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectAllOfWithHttpInfo(@javax.annotation.Nullable TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter queryObject) throws RestClientException { Object localVarPostBody = null; @@ -293,7 +293,7 @@ public ResponseEntity testQueryStyleDeepObjectExplodeTrueObjectAllOfWith * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeFalseArrayInteger(List queryObject) throws RestClientException { + public String testQueryStyleFormExplodeFalseArrayInteger(@javax.annotation.Nullable List queryObject) throws RestClientException { return testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(queryObject).getBody(); } @@ -305,7 +305,7 @@ public String testQueryStyleFormExplodeFalseArrayInteger(List queryObje * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(List queryObject) throws RestClientException { + public ResponseEntity testQueryStyleFormExplodeFalseArrayIntegerWithHttpInfo(@javax.annotation.Nullable List queryObject) throws RestClientException { Object localVarPostBody = null; @@ -337,7 +337,7 @@ public ResponseEntity testQueryStyleFormExplodeFalseArrayIntegerWithHttp * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeFalseArrayString(List queryObject) throws RestClientException { + public String testQueryStyleFormExplodeFalseArrayString(@javax.annotation.Nullable List queryObject) throws RestClientException { return testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(queryObject).getBody(); } @@ -349,7 +349,7 @@ public String testQueryStyleFormExplodeFalseArrayString(List queryObject * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(List queryObject) throws RestClientException { + public ResponseEntity testQueryStyleFormExplodeFalseArrayStringWithHttpInfo(@javax.annotation.Nullable List queryObject) throws RestClientException { Object localVarPostBody = null; @@ -381,7 +381,7 @@ public ResponseEntity testQueryStyleFormExplodeFalseArrayStringWithHttpI * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeTrueArrayString(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientException { + public String testQueryStyleFormExplodeTrueArrayString(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientException { return testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(queryObject).getBody(); } @@ -393,7 +393,7 @@ public String testQueryStyleFormExplodeTrueArrayString(TestQueryStyleFormExplode * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientException { + public ResponseEntity testQueryStyleFormExplodeTrueArrayStringWithHttpInfo(@javax.annotation.Nullable TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter queryObject) throws RestClientException { Object localVarPostBody = null; @@ -427,7 +427,7 @@ public ResponseEntity testQueryStyleFormExplodeTrueArrayStringWithHttpIn * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeTrueObject(Pet queryObject) throws RestClientException { + public String testQueryStyleFormExplodeTrueObject(@javax.annotation.Nullable Pet queryObject) throws RestClientException { return testQueryStyleFormExplodeTrueObjectWithHttpInfo(queryObject).getBody(); } @@ -439,7 +439,7 @@ public String testQueryStyleFormExplodeTrueObject(Pet queryObject) throws RestCl * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeTrueObjectWithHttpInfo(Pet queryObject) throws RestClientException { + public ResponseEntity testQueryStyleFormExplodeTrueObjectWithHttpInfo(@javax.annotation.Nullable Pet queryObject) throws RestClientException { Object localVarPostBody = null; @@ -478,7 +478,7 @@ public ResponseEntity testQueryStyleFormExplodeTrueObjectWithHttpInfo(Pe * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleFormExplodeTrueObjectAllOf(DataQuery queryObject) throws RestClientException { + public String testQueryStyleFormExplodeTrueObjectAllOf(@javax.annotation.Nullable DataQuery queryObject) throws RestClientException { return testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(queryObject).getBody(); } @@ -490,7 +490,7 @@ public String testQueryStyleFormExplodeTrueObjectAllOf(DataQuery queryObject) th * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(DataQuery queryObject) throws RestClientException { + public ResponseEntity testQueryStyleFormExplodeTrueObjectAllOfWithHttpInfo(@javax.annotation.Nullable DataQuery queryObject) throws RestClientException { Object localVarPostBody = null; @@ -523,7 +523,7 @@ public ResponseEntity testQueryStyleFormExplodeTrueObjectAllOfWithHttpIn * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String testQueryStyleJsonSerializationObject(Pet jsonSerializedObjectRefStringQuery, List jsonSerializedObjectArrayRefStringQuery) throws RestClientException { + public String testQueryStyleJsonSerializationObject(@javax.annotation.Nullable Pet jsonSerializedObjectRefStringQuery, @javax.annotation.Nullable List jsonSerializedObjectArrayRefStringQuery) throws RestClientException { return testQueryStyleJsonSerializationObjectWithHttpInfo(jsonSerializedObjectRefStringQuery, jsonSerializedObjectArrayRefStringQuery).getBody(); } @@ -536,7 +536,7 @@ public String testQueryStyleJsonSerializationObject(Pet jsonSerializedObjectRefS * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryStyleJsonSerializationObjectWithHttpInfo(Pet jsonSerializedObjectRefStringQuery, List jsonSerializedObjectArrayRefStringQuery) throws RestClientException { + public ResponseEntity testQueryStyleJsonSerializationObjectWithHttpInfo(@javax.annotation.Nullable Pet jsonSerializedObjectRefStringQuery, @javax.annotation.Nullable List jsonSerializedObjectArrayRefStringQuery) throws RestClientException { Object localVarPostBody = null; diff --git a/samples/client/others/java/resttemplate-list-schema-validation/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/others/java/resttemplate-list-schema-validation/src/main/java/org/openapitools/client/api/UserApi.java index 20aeeb76bf62..74ece709fcdb 100644 --- a/samples/client/others/java/resttemplate-list-schema-validation/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/others/java/resttemplate-list-schema-validation/src/main/java/org/openapitools/client/api/UserApi.java @@ -48,7 +48,7 @@ public UserApi(ApiClient apiClient) { * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User userGet(List<@Pattern(regexp = "^[a-zA-Z0-9]$")String> username) throws RestClientException { + public User userGet(@javax.annotation.Nonnull List<@Pattern(regexp = "^[a-zA-Z0-9]$")String> username) throws RestClientException { return userGetWithHttpInfo(username).getBody(); } @@ -60,7 +60,7 @@ public User userGet(List<@Pattern(regexp = "^[a-zA-Z0-9]$")String> username) thr * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity userGetWithHttpInfo(List<@Pattern(regexp = "^[a-zA-Z0-9]$")String> username) throws RestClientException { + public ResponseEntity userGetWithHttpInfo(@javax.annotation.Nonnull List<@Pattern(regexp = "^[a-zA-Z0-9]$")String> username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/PetApi.java index 63e809902cd2..24d8eed8a123 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/PetApi.java @@ -48,7 +48,7 @@ public PetApi(ApiClient apiClient) { * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet addPet(Pet pet) throws RestClientException { + public Pet addPet(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { return addPetWithHttpInfo(pet).getBody(); } @@ -61,7 +61,7 @@ public Pet addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -97,7 +97,7 @@ public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientExceptio * @param apiKey (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientException { + public void deletePet(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientException { deletePetWithHttpInfo(petId, apiKey); } @@ -110,7 +110,7 @@ public void deletePet(Long petId, String apiKey) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientException { + public ResponseEntity deletePetWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String apiKey) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -149,7 +149,7 @@ public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) thr * @return List<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientException { + public List findPetsByStatus(@jakarta.annotation.Nonnull List status) throws RestClientException { return findPetsByStatusWithHttpInfo(status).getBody(); } @@ -162,7 +162,7 @@ public List findPetsByStatus(List status) throws RestClientExceptio * @return ResponseEntity<List<Pet>> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@jakarta.annotation.Nonnull List status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -202,7 +202,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws RestClientException { + public List findPetsByTags(@jakarta.annotation.Nonnull List tags) throws RestClientException { return findPetsByTagsWithHttpInfo(tags).getBody(); } @@ -217,7 +217,7 @@ public List findPetsByTags(List tags) throws RestClientException { * @deprecated */ @Deprecated - public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) throws RestClientException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@jakarta.annotation.Nonnull List tags) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -256,7 +256,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) t * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientException { + public Pet getPetById(@jakarta.annotation.Nonnull Long petId) throws RestClientException { return getPetByIdWithHttpInfo(petId).getBody(); } @@ -270,7 +270,7 @@ public Pet getPetById(Long petId) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientException { + public ResponseEntity getPetByIdWithHttpInfo(@jakarta.annotation.Nonnull Long petId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -312,7 +312,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientE * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws RestClientException { + public Pet updatePet(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { return updatePetWithHttpInfo(pet).getBody(); } @@ -329,7 +329,7 @@ public Pet updatePet(Pet pet) throws RestClientException { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity updatePetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -366,7 +366,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientExcep * @param status Updated status of the pet (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientException { + public void updatePetWithForm(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -380,7 +380,7 @@ public void updatePetWithForm(Long petId, String name, String status) throws Res * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException { + public ResponseEntity updatePetWithFormWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String name, @jakarta.annotation.Nullable String status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -424,7 +424,7 @@ public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String nam * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ModelApiResponse uploadFile(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getBody(); } @@ -438,7 +438,7 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _ * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ResponseEntity uploadFileWithHttpInfo(@jakarta.annotation.Nonnull Long petId, @jakarta.annotation.Nullable String additionalMetadata, @jakarta.annotation.Nullable File _file) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java index cd5751851c7b..4ba0712cadc4 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/StoreApi.java @@ -45,7 +45,7 @@ public StoreApi(ApiClient apiClient) { * @param orderId ID of the order that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientException { + public void deleteOrder(@jakarta.annotation.Nonnull String orderId) throws RestClientException { deleteOrderWithHttpInfo(orderId); } @@ -58,7 +58,7 @@ public void deleteOrder(String orderId) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientException { + public ResponseEntity deleteOrderWithHttpInfo(@jakarta.annotation.Nonnull String orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -134,7 +134,7 @@ public ResponseEntity> getInventoryWithHttpInfo() throws Re * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientException { + public Order getOrderById(@jakarta.annotation.Nonnull Long orderId) throws RestClientException { return getOrderByIdWithHttpInfo(orderId).getBody(); } @@ -148,7 +148,7 @@ public Order getOrderById(Long orderId) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientException { + public ResponseEntity getOrderByIdWithHttpInfo(@jakarta.annotation.Nonnull Long orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -186,7 +186,7 @@ public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestC * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { + public Order placeOrder(@jakarta.annotation.Nonnull Order order) throws RestClientException { return placeOrderWithHttpInfo(order).getBody(); } @@ -199,7 +199,7 @@ public Order placeOrder(Order order) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientException { + public ResponseEntity placeOrderWithHttpInfo(@jakarta.annotation.Nonnull Order order) throws RestClientException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/UserApi.java index f0155fbb02e1..4d07c2bc8304 100644 --- a/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate-jakarta/src/main/java/org/openapitools/client/api/UserApi.java @@ -45,7 +45,7 @@ public UserApi(ApiClient apiClient) { * @param user Created user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { + public void createUser(@jakarta.annotation.Nonnull User user) throws RestClientException { createUserWithHttpInfo(user); } @@ -57,7 +57,7 @@ public void createUser(User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientException { + public ResponseEntity createUserWithHttpInfo(@jakarta.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -90,7 +90,7 @@ public ResponseEntity createUserWithHttpInfo(User user) throws RestClientE * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { + public void createUsersWithArrayInput(@jakarta.annotation.Nonnull List user) throws RestClientException { createUsersWithArrayInputWithHttpInfo(user); } @@ -102,7 +102,7 @@ public void createUsersWithArrayInput(List user) throws RestClientExceptio * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -135,7 +135,7 @@ public ResponseEntity createUsersWithArrayInputWithHttpInfo(List use * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { + public void createUsersWithListInput(@jakarta.annotation.Nonnull List user) throws RestClientException { createUsersWithListInputWithHttpInfo(user); } @@ -147,7 +147,7 @@ public void createUsersWithListInput(List user) throws RestClientException * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@jakarta.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -181,7 +181,7 @@ public ResponseEntity createUsersWithListInputWithHttpInfo(List user * @param username The name that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientException { + public void deleteUser(@jakarta.annotation.Nonnull String username) throws RestClientException { deleteUserWithHttpInfo(username); } @@ -194,7 +194,7 @@ public void deleteUser(String username) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientException { + public ResponseEntity deleteUserWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -231,7 +231,7 @@ public ResponseEntity deleteUserWithHttpInfo(String username) throws RestC * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientException { + public User getUserByName(@jakarta.annotation.Nonnull String username) throws RestClientException { return getUserByNameWithHttpInfo(username).getBody(); } @@ -245,7 +245,7 @@ public User getUserByName(String username) throws RestClientException { * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientException { + public ResponseEntity getUserByNameWithHttpInfo(@jakarta.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -284,7 +284,7 @@ public ResponseEntity getUserByNameWithHttpInfo(String username) throws Re * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientException { + public String loginUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientException { return loginUserWithHttpInfo(username, password).getBody(); } @@ -298,7 +298,7 @@ public String loginUser(String username, String password) throws RestClientExcep * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientException { + public ResponseEntity loginUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull String password) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -378,7 +378,7 @@ public ResponseEntity logoutUserWithHttpInfo() throws RestClientException * @param user Updated user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { + public void updateUser(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientException { updateUserWithHttpInfo(username, user); } @@ -392,7 +392,7 @@ public void updateUser(String username, User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientException { + public ResponseEntity updateUserWithHttpInfo(@jakarta.annotation.Nonnull String username, @jakarta.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/resttemplate-springBoot4-jackson2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-springBoot4-jackson2/src/main/java/org/openapitools/client/api/PetApi.java index 04dbbcf4b4d0..eaeb4cd22de3 100644 --- a/samples/client/petstore/java/resttemplate-springBoot4-jackson2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-springBoot4-jackson2/src/main/java/org/openapitools/client/api/PetApi.java @@ -46,7 +46,7 @@ public PetApi(ApiClient apiClient) { * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet addPet(Pet pet) throws RestClientException { + public Pet addPet(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { return addPetWithHttpInfo(pet).getBody(); } @@ -59,7 +59,7 @@ public Pet addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set diff --git a/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/FooApi.java b/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/FooApi.java index 392e33f924a7..142a49b97ecf 100644 --- a/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/FooApi.java +++ b/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/FooApi.java @@ -50,7 +50,7 @@ public FooApi(ApiClient apiClient) { * @return Foo * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Foo fooDtParamGet(java.time.Instant dtParam, java.time.Instant dtQuery, java.time.Instant dtCookie, String color) throws RestClientException { + public Foo fooDtParamGet(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color) throws RestClientException { return fooDtParamGetWithHttpInfo(dtParam, dtQuery, dtCookie, color).getBody(); } @@ -65,7 +65,7 @@ public Foo fooDtParamGet(java.time.Instant dtParam, java.time.Instant dtQuery, j * @return ResponseEntity<Foo> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fooDtParamGetWithHttpInfo(java.time.Instant dtParam, java.time.Instant dtQuery, java.time.Instant dtCookie, String color) throws RestClientException { + public ResponseEntity fooDtParamGetWithHttpInfo(java.time.@Nullable Instant dtParam, java.time.@Nullable Instant dtQuery, java.time.@Nullable Instant dtCookie, @Nullable String color) throws RestClientException { Object localVarPostBody = null; // create path and map variables diff --git a/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/UploadApi.java b/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/UploadApi.java index 0a144089ca6d..0d89ec72f762 100644 --- a/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/UploadApi.java +++ b/samples/client/petstore/java/resttemplate-springBoot4-jackson3-jspecify/src/main/java/org/openapitools/client/api/UploadApi.java @@ -45,7 +45,7 @@ public UploadApi(ApiClient apiClient) { * @param _file (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void uploadFilesPost(List _file) throws RestClientException { + public void uploadFilesPost(@Nullable List _file) throws RestClientException { uploadFilesPostWithHttpInfo(_file); } @@ -57,7 +57,7 @@ public void uploadFilesPost(List _file) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFilesPostWithHttpInfo(List _file) throws RestClientException { + public ResponseEntity uploadFilesPostWithHttpInfo(@Nullable List _file) throws RestClientException { Object localVarPostBody = null; @@ -88,7 +88,7 @@ public ResponseEntity uploadFilesPostWithHttpInfo(List _file) throws * @param _file (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void uploadPost(File _file) throws RestClientException { + public void uploadPost(@Nullable File _file) throws RestClientException { uploadPostWithHttpInfo(_file); } @@ -100,7 +100,7 @@ public void uploadPost(File _file) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadPostWithHttpInfo(File _file) throws RestClientException { + public ResponseEntity uploadPostWithHttpInfo(@Nullable File _file) throws RestClientException { Object localVarPostBody = null; diff --git a/samples/client/petstore/java/resttemplate-springBoot4-jackson3/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-springBoot4-jackson3/src/main/java/org/openapitools/client/api/PetApi.java index 04dbbcf4b4d0..eaeb4cd22de3 100644 --- a/samples/client/petstore/java/resttemplate-springBoot4-jackson3/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-springBoot4-jackson3/src/main/java/org/openapitools/client/api/PetApi.java @@ -46,7 +46,7 @@ public PetApi(ApiClient apiClient) { * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet addPet(Pet pet) throws RestClientException { + public Pet addPet(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { return addPetWithHttpInfo(pet).getBody(); } @@ -59,7 +59,7 @@ public Pet addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@jakarta.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/PetApi.java index 6dcb9db90546..e9caeb6abdd2 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/PetApi.java @@ -48,7 +48,7 @@ public PetApi(ApiClient apiClient) { * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet addPet(Pet pet) throws RestClientException { + public Pet addPet(@javax.annotation.Nonnull Pet pet) throws RestClientException { return addPetWithHttpInfo(pet).getBody(); } @@ -61,7 +61,7 @@ public Pet addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -97,7 +97,7 @@ public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientExceptio * @param apiKey (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { deletePetWithHttpInfo(petId, apiKey); } @@ -110,7 +110,7 @@ public void deletePet(Long petId, String apiKey) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientException { + public ResponseEntity deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -149,7 +149,7 @@ public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) thr * @return List<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws RestClientException { return findPetsByStatusWithHttpInfo(status).getBody(); } @@ -162,7 +162,7 @@ public List findPetsByStatus(List status) throws RestClientExceptio * @return ResponseEntity<List<Pet>> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -202,7 +202,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws RestClientException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws RestClientException { return findPetsByTagsWithHttpInfo(tags).getBody(); } @@ -217,7 +217,7 @@ public List findPetsByTags(List tags) throws RestClientException { * @deprecated */ @Deprecated - public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) throws RestClientException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -256,7 +256,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) t * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws RestClientException { return getPetByIdWithHttpInfo(petId).getBody(); } @@ -270,7 +270,7 @@ public Pet getPetById(Long petId) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientException { + public ResponseEntity getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -312,7 +312,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientE * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws RestClientException { + public Pet updatePet(@javax.annotation.Nonnull Pet pet) throws RestClientException { return updatePetWithHttpInfo(pet).getBody(); } @@ -329,7 +329,7 @@ public Pet updatePet(Pet pet) throws RestClientException { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -366,7 +366,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientExcep * @param status Updated status of the pet (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -380,7 +380,7 @@ public void updatePetWithForm(Long petId, String name, String status) throws Res * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException { + public ResponseEntity updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -424,7 +424,7 @@ public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String nam * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getBody(); } @@ -438,7 +438,7 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _ * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ResponseEntity uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java index d13023e3c398..187c2e860969 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/StoreApi.java @@ -45,7 +45,7 @@ public StoreApi(ApiClient apiClient) { * @param orderId ID of the order that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws RestClientException { deleteOrderWithHttpInfo(orderId); } @@ -58,7 +58,7 @@ public void deleteOrder(String orderId) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientException { + public ResponseEntity deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -134,7 +134,7 @@ public ResponseEntity> getInventoryWithHttpInfo() throws Re * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws RestClientException { return getOrderByIdWithHttpInfo(orderId).getBody(); } @@ -148,7 +148,7 @@ public Order getOrderById(Long orderId) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientException { + public ResponseEntity getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -186,7 +186,7 @@ public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestC * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws RestClientException { return placeOrderWithHttpInfo(order).getBody(); } @@ -199,7 +199,7 @@ public Order placeOrder(Order order) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientException { + public ResponseEntity placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws RestClientException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/UserApi.java index 57d94f044cd8..4b76b7286db9 100644 --- a/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate-swagger1/src/main/java/org/openapitools/client/api/UserApi.java @@ -45,7 +45,7 @@ public UserApi(ApiClient apiClient) { * @param user Created user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { + public void createUser(@javax.annotation.Nonnull User user) throws RestClientException { createUserWithHttpInfo(user); } @@ -57,7 +57,7 @@ public void createUser(User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientException { + public ResponseEntity createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -90,7 +90,7 @@ public ResponseEntity createUserWithHttpInfo(User user) throws RestClientE * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithArrayInputWithHttpInfo(user); } @@ -102,7 +102,7 @@ public void createUsersWithArrayInput(List user) throws RestClientExceptio * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -135,7 +135,7 @@ public ResponseEntity createUsersWithArrayInputWithHttpInfo(List use * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithListInputWithHttpInfo(user); } @@ -147,7 +147,7 @@ public void createUsersWithListInput(List user) throws RestClientException * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -181,7 +181,7 @@ public ResponseEntity createUsersWithListInputWithHttpInfo(List user * @param username The name that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientException { + public void deleteUser(@javax.annotation.Nonnull String username) throws RestClientException { deleteUserWithHttpInfo(username); } @@ -194,7 +194,7 @@ public void deleteUser(String username) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientException { + public ResponseEntity deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -231,7 +231,7 @@ public ResponseEntity deleteUserWithHttpInfo(String username) throws RestC * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientException { + public User getUserByName(@javax.annotation.Nonnull String username) throws RestClientException { return getUserByNameWithHttpInfo(username).getBody(); } @@ -245,7 +245,7 @@ public User getUserByName(String username) throws RestClientException { * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientException { + public ResponseEntity getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -284,7 +284,7 @@ public ResponseEntity getUserByNameWithHttpInfo(String username) throws Re * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { return loginUserWithHttpInfo(username, password).getBody(); } @@ -298,7 +298,7 @@ public String loginUser(String username, String password) throws RestClientExcep * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientException { + public ResponseEntity loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -378,7 +378,7 @@ public ResponseEntity logoutUserWithHttpInfo() throws RestClientException * @param user Updated user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { updateUserWithHttpInfo(username, user); } @@ -392,7 +392,7 @@ public void updateUser(String username, User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientException { + public ResponseEntity updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/PetApi.java index 6dcb9db90546..e9caeb6abdd2 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/PetApi.java @@ -48,7 +48,7 @@ public PetApi(ApiClient apiClient) { * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet addPet(Pet pet) throws RestClientException { + public Pet addPet(@javax.annotation.Nonnull Pet pet) throws RestClientException { return addPetWithHttpInfo(pet).getBody(); } @@ -61,7 +61,7 @@ public Pet addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -97,7 +97,7 @@ public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientExceptio * @param apiKey (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { deletePetWithHttpInfo(petId, apiKey); } @@ -110,7 +110,7 @@ public void deletePet(Long petId, String apiKey) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientException { + public ResponseEntity deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -149,7 +149,7 @@ public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) thr * @return List<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws RestClientException { return findPetsByStatusWithHttpInfo(status).getBody(); } @@ -162,7 +162,7 @@ public List findPetsByStatus(List status) throws RestClientExceptio * @return ResponseEntity<List<Pet>> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -202,7 +202,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu * @deprecated */ @Deprecated - public List findPetsByTags(List tags) throws RestClientException { + public List findPetsByTags(@javax.annotation.Nonnull List tags) throws RestClientException { return findPetsByTagsWithHttpInfo(tags).getBody(); } @@ -217,7 +217,7 @@ public List findPetsByTags(List tags) throws RestClientException { * @deprecated */ @Deprecated - public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) throws RestClientException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull List tags) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -256,7 +256,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(List tags) t * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws RestClientException { return getPetByIdWithHttpInfo(petId).getBody(); } @@ -270,7 +270,7 @@ public Pet getPetById(Long petId) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientException { + public ResponseEntity getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -312,7 +312,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientE * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public Pet updatePet(Pet pet) throws RestClientException { + public Pet updatePet(@javax.annotation.Nonnull Pet pet) throws RestClientException { return updatePetWithHttpInfo(pet).getBody(); } @@ -329,7 +329,7 @@ public Pet updatePet(Pet pet) throws RestClientException { * API documentation for the updatePet operation * @see Update an existing pet Documentation */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -366,7 +366,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientExcep * @param status Updated status of the pet (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -380,7 +380,7 @@ public void updatePetWithForm(Long petId, String name, String status) throws Res * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException { + public ResponseEntity updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -424,7 +424,7 @@ public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String nam * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getBody(); } @@ -438,7 +438,7 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _ * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ResponseEntity uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java index d13023e3c398..187c2e860969 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/StoreApi.java @@ -45,7 +45,7 @@ public StoreApi(ApiClient apiClient) { * @param orderId ID of the order that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws RestClientException { deleteOrderWithHttpInfo(orderId); } @@ -58,7 +58,7 @@ public void deleteOrder(String orderId) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientException { + public ResponseEntity deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -134,7 +134,7 @@ public ResponseEntity> getInventoryWithHttpInfo() throws Re * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws RestClientException { return getOrderByIdWithHttpInfo(orderId).getBody(); } @@ -148,7 +148,7 @@ public Order getOrderById(Long orderId) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientException { + public ResponseEntity getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -186,7 +186,7 @@ public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestC * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws RestClientException { return placeOrderWithHttpInfo(order).getBody(); } @@ -199,7 +199,7 @@ public Order placeOrder(Order order) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientException { + public ResponseEntity placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws RestClientException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/UserApi.java index 57d94f044cd8..4b76b7286db9 100644 --- a/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate-swagger2/src/main/java/org/openapitools/client/api/UserApi.java @@ -45,7 +45,7 @@ public UserApi(ApiClient apiClient) { * @param user Created user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { + public void createUser(@javax.annotation.Nonnull User user) throws RestClientException { createUserWithHttpInfo(user); } @@ -57,7 +57,7 @@ public void createUser(User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientException { + public ResponseEntity createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -90,7 +90,7 @@ public ResponseEntity createUserWithHttpInfo(User user) throws RestClientE * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithArrayInputWithHttpInfo(user); } @@ -102,7 +102,7 @@ public void createUsersWithArrayInput(List user) throws RestClientExceptio * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -135,7 +135,7 @@ public ResponseEntity createUsersWithArrayInputWithHttpInfo(List use * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithListInputWithHttpInfo(user); } @@ -147,7 +147,7 @@ public void createUsersWithListInput(List user) throws RestClientException * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -181,7 +181,7 @@ public ResponseEntity createUsersWithListInputWithHttpInfo(List user * @param username The name that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientException { + public void deleteUser(@javax.annotation.Nonnull String username) throws RestClientException { deleteUserWithHttpInfo(username); } @@ -194,7 +194,7 @@ public void deleteUser(String username) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientException { + public ResponseEntity deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -231,7 +231,7 @@ public ResponseEntity deleteUserWithHttpInfo(String username) throws RestC * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientException { + public User getUserByName(@javax.annotation.Nonnull String username) throws RestClientException { return getUserByNameWithHttpInfo(username).getBody(); } @@ -245,7 +245,7 @@ public User getUserByName(String username) throws RestClientException { * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientException { + public ResponseEntity getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -284,7 +284,7 @@ public ResponseEntity getUserByNameWithHttpInfo(String username) throws Re * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { return loginUserWithHttpInfo(username, password).getBody(); } @@ -298,7 +298,7 @@ public String loginUser(String username, String password) throws RestClientExcep * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientException { + public ResponseEntity loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -378,7 +378,7 @@ public ResponseEntity logoutUserWithHttpInfo() throws RestClientException * @param user Updated user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { updateUserWithHttpInfo(username, user); } @@ -392,7 +392,7 @@ public void updateUser(String username, User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientException { + public ResponseEntity updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 0307e5febcbf..d4a87120a76b 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -45,7 +45,7 @@ public AnotherFakeApi(ApiClient apiClient) { * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client call123testSpecialTags(Client client) throws RestClientException { + public Client call123testSpecialTags(@javax.annotation.Nonnull Client client) throws RestClientException { return call123testSpecialTagsWithHttpInfo(client).getBody(); } @@ -57,7 +57,7 @@ public Client call123testSpecialTags(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity call123testSpecialTagsWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java index 729ffb7db428..3366149610e2 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeApi.java @@ -138,7 +138,7 @@ public ResponseEntity fakeHealthGetWithHttpInfo() throws Rest * @param header1 header parameter (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws RestClientException { + public void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws RestClientException { fakeHttpSignatureTestWithHttpInfo(pet, query1, header1); } @@ -152,7 +152,7 @@ public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws RestClientException { + public ResponseEntity fakeHttpSignatureTestWithHttpInfo(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -192,7 +192,7 @@ public ResponseEntity fakeHttpSignatureTestWithHttpInfo(Pet pet, String qu * @return Boolean * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws RestClientException { return fakeOuterBooleanSerializeWithHttpInfo(body).getBody(); } @@ -204,7 +204,7 @@ public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientExceptio * @return ResponseEntity<Boolean> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws RestClientException { + public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws RestClientException { Object localVarPostBody = body; @@ -235,7 +235,7 @@ public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(Boolean bod * @return OuterComposite * @throws RestClientException if an error occurs while attempting to invoke the API */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws RestClientException { return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getBody(); } @@ -247,7 +247,7 @@ public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) * @return ResponseEntity<OuterComposite> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws RestClientException { + public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws RestClientException { Object localVarPostBody = outerComposite; @@ -278,7 +278,7 @@ public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(Ou * @return BigDecimal * @throws RestClientException if an error occurs while attempting to invoke the API */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws RestClientException { return fakeOuterNumberSerializeWithHttpInfo(body).getBody(); } @@ -290,7 +290,7 @@ public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientExc * @return ResponseEntity<BigDecimal> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws RestClientException { + public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws RestClientException { Object localVarPostBody = body; @@ -321,7 +321,7 @@ public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecima * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(String body) throws RestClientException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws RestClientException { return fakeOuterStringSerializeWithHttpInfo(body).getBody(); } @@ -333,7 +333,7 @@ public String fakeOuterStringSerialize(String body) throws RestClientException { * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) throws RestClientException { + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws RestClientException { Object localVarPostBody = body; @@ -364,7 +364,7 @@ public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) * @return OuterObjectWithEnumProperty * @throws RestClientException if an error occurs while attempting to invoke the API */ - public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { + public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { return fakePropertyEnumIntegerSerializeWithHttpInfo(outerObjectWithEnumProperty).getBody(); } @@ -376,7 +376,7 @@ public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectW * @return ResponseEntity<OuterObjectWithEnumProperty> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { + public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { Object localVarPostBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set @@ -411,7 +411,7 @@ public ResponseEntity fakePropertyEnumIntegerSerial * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testAdditionalPropertiesReference(Map requestBody) throws RestClientException { + public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testAdditionalPropertiesReferenceWithHttpInfo(requestBody); } @@ -423,7 +423,7 @@ public void testAdditionalPropertiesReference(Map requestBody) t * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -456,7 +456,7 @@ public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(Map testBodyWithBinaryWithHttpInfo(File body) throws RestClientException { + public ResponseEntity testBodyWithBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws RestClientException { Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -501,7 +501,7 @@ public ResponseEntity testBodyWithBinaryWithHttpInfo(File body) throws Res * @param fileSchemaTestClass (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientException { testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); } @@ -513,7 +513,7 @@ public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) thro * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws RestClientException { + public ResponseEntity testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientException { Object localVarPostBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set @@ -547,7 +547,7 @@ public ResponseEntity testBodyWithFileSchemaWithHttpInfo(FileSchemaTestCla * @param user (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithQueryParams(String query, User user) throws RestClientException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws RestClientException { testBodyWithQueryParamsWithHttpInfo(query, user); } @@ -560,7 +560,7 @@ public void testBodyWithQueryParams(String query, User user) throws RestClientEx * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithQueryParamsWithHttpInfo(String query, User user) throws RestClientException { + public ResponseEntity testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'query' is set @@ -602,7 +602,7 @@ public ResponseEntity testBodyWithQueryParamsWithHttpInfo(String query, Us * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClientModel(Client client) throws RestClientException { + public Client testClientModel(@javax.annotation.Nonnull Client client) throws RestClientException { return testClientModelWithHttpInfo(client).getBody(); } @@ -614,7 +614,7 @@ public Client testClientModel(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClientModelWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set @@ -663,7 +663,7 @@ public ResponseEntity testClientModelWithHttpInfo(Client client) throws * @param paramCallback None (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientException { + public void testEndpointParameters(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws RestClientException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -689,7 +689,7 @@ public void testEndpointParameters(BigDecimal number, Double _double, String pat * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientException { + public ResponseEntity testEndpointParametersWithHttpInfo(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'number' is set @@ -775,7 +775,7 @@ public ResponseEntity testEndpointParametersWithHttpInfo(BigDecimal number * @param enumFormString Form parameter enum test (string) (optional, default to -efg) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientException { + public void testEnumParameters(@javax.annotation.Nullable List enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List enumQueryModelArray, @javax.annotation.Nullable List enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws RestClientException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } @@ -796,7 +796,7 @@ public void testEnumParameters(List enumHeaderStringArray, String enumHe * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientException { + public ResponseEntity testEnumParametersWithHttpInfo(@javax.annotation.Nullable List enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List enumQueryModelArray, @javax.annotation.Nullable List enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws RestClientException { Object localVarPostBody = null; @@ -846,7 +846,7 @@ public ResponseEntity testEnumParametersWithHttpInfo(List enumHead * @param int64Group Integer in group parameters (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientException { + public void testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws RestClientException { testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -863,7 +863,7 @@ public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBoo * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientException { + public ResponseEntity testGroupParametersWithHttpInfo(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'requiredStringGroup' is set @@ -915,7 +915,7 @@ public ResponseEntity testGroupParametersWithHttpInfo(Integer requiredStri * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testInlineAdditionalProperties(Map requestBody) throws RestClientException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testInlineAdditionalPropertiesWithHttpInfo(requestBody); } @@ -927,7 +927,7 @@ public void testInlineAdditionalProperties(Map requestBody) thro * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -960,7 +960,7 @@ public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(Map testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientException { + public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientException { Object localVarPostBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set @@ -1006,7 +1006,7 @@ public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(T * @param param2 field2 (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testJsonFormData(String param, String param2) throws RestClientException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws RestClientException { testJsonFormDataWithHttpInfo(param, param2); } @@ -1019,7 +1019,7 @@ public void testJsonFormData(String param, String param2) throws RestClientExcep * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testJsonFormDataWithHttpInfo(String param, String param2) throws RestClientException { + public ResponseEntity testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'param' is set @@ -1062,7 +1062,7 @@ public ResponseEntity testJsonFormDataWithHttpInfo(String param, String pa * @param childWithNullable request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testNullable(ChildWithNullable childWithNullable) throws RestClientException { + public void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientException { testNullableWithHttpInfo(childWithNullable); } @@ -1074,7 +1074,7 @@ public void testNullable(ChildWithNullable childWithNullable) throws RestClientE * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws RestClientException { + public ResponseEntity testNullableWithHttpInfo(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientException { Object localVarPostBody = childWithNullable; // verify the required parameter 'childWithNullable' is set @@ -1113,7 +1113,7 @@ public ResponseEntity testNullableWithHttpInfo(ChildWithNullable childWith * @param language (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientException { + public void testQueryParameterCollectionFormat(@javax.annotation.Nonnull List pipe, @javax.annotation.Nonnull List ioutil, @javax.annotation.Nonnull List http, @javax.annotation.Nonnull List url, @javax.annotation.Nonnull List context, @javax.annotation.Nonnull String allowEmpty, @javax.annotation.Nullable Map language) throws RestClientException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, allowEmpty, language); } @@ -1131,7 +1131,7 @@ public void testQueryParameterCollectionFormat(List pipe, List i * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientException { + public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(@javax.annotation.Nonnull List pipe, @javax.annotation.Nonnull List ioutil, @javax.annotation.Nonnull List http, @javax.annotation.Nonnull List url, @javax.annotation.Nonnull List context, @javax.annotation.Nonnull String allowEmpty, @javax.annotation.Nullable Map language) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'pipe' is set @@ -1196,7 +1196,7 @@ public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(List< * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testStringMapReference(Map requestBody) throws RestClientException { + public void testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testStringMapReferenceWithHttpInfo(requestBody); } @@ -1208,7 +1208,7 @@ public void testStringMapReference(Map requestBody) throws RestC * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testStringMapReferenceWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 9f560f1a5ca1..2975dde1f524 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -45,7 +45,7 @@ public FakeClassnameTags123Api(ApiClient apiClient) { * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClassname(Client client) throws RestClientException { + public Client testClassname(@javax.annotation.Nonnull Client client) throws RestClientException { return testClassnameWithHttpInfo(client).getBody(); } @@ -57,7 +57,7 @@ public Client testClassname(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClassnameWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java index c5b72e2838d1..58c8bced78ae 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/PetApi.java @@ -48,7 +48,7 @@ public PetApi(ApiClient apiClient) { * @param pet Pet object that needs to be added to the store (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void addPet(Pet pet) throws RestClientException { + public void addPet(@javax.annotation.Nonnull Pet pet) throws RestClientException { addPetWithHttpInfo(pet); } @@ -61,7 +61,7 @@ public void addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -96,7 +96,7 @@ public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientExcepti * @param apiKey (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { deletePetWithHttpInfo(petId, apiKey); } @@ -110,7 +110,7 @@ public void deletePet(Long petId, String apiKey) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientException { + public ResponseEntity deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -149,7 +149,7 @@ public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) thr * @return List<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws RestClientException { return findPetsByStatusWithHttpInfo(status).getBody(); } @@ -162,7 +162,7 @@ public List findPetsByStatus(List status) throws RestClientExceptio * @return ResponseEntity<List<Pet>> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -202,7 +202,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu * @deprecated */ @Deprecated - public Set findPetsByTags(Set tags) throws RestClientException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws RestClientException { return findPetsByTagsWithHttpInfo(tags).getBody(); } @@ -217,7 +217,7 @@ public Set findPetsByTags(Set tags) throws RestClientException { * @deprecated */ @Deprecated - public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) throws RestClientException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set tags) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -256,7 +256,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) thr * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws RestClientException { return getPetByIdWithHttpInfo(petId).getBody(); } @@ -270,7 +270,7 @@ public Pet getPetById(Long petId) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientException { + public ResponseEntity getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -309,7 +309,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientE * @param pet Pet object that needs to be added to the store (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws RestClientException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws RestClientException { updatePetWithHttpInfo(pet); } @@ -324,7 +324,7 @@ public void updatePet(Pet pet) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -360,7 +360,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientExce * @param status Updated status of the pet (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -375,7 +375,7 @@ public void updatePetWithForm(Long petId, String name, String status) throws Res * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException { + public ResponseEntity updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -419,7 +419,7 @@ public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String nam * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getBody(); } @@ -433,7 +433,7 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _ * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ResponseEntity uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -479,7 +479,7 @@ public ResponseEntity uploadFileWithHttpInfo(Long petId, Strin * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws RestClientException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws RestClientException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getBody(); } @@ -493,7 +493,7 @@ public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws RestClientException { + public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java index 615a3cbf5ba3..04381b6658be 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/StoreApi.java @@ -45,7 +45,7 @@ public StoreApi(ApiClient apiClient) { * @param orderId ID of the order that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws RestClientException { deleteOrderWithHttpInfo(orderId); } @@ -58,7 +58,7 @@ public void deleteOrder(String orderId) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientException { + public ResponseEntity deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -134,7 +134,7 @@ public ResponseEntity> getInventoryWithHttpInfo() throws Re * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws RestClientException { return getOrderByIdWithHttpInfo(orderId).getBody(); } @@ -148,7 +148,7 @@ public Order getOrderById(Long orderId) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientException { + public ResponseEntity getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -186,7 +186,7 @@ public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestC * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws RestClientException { return placeOrderWithHttpInfo(order).getBody(); } @@ -199,7 +199,7 @@ public Order placeOrder(Order order) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientException { + public ResponseEntity placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws RestClientException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java index 1dcd28332b06..b1e341816965 100644 --- a/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate-withXml/src/main/java/org/openapitools/client/api/UserApi.java @@ -45,7 +45,7 @@ public UserApi(ApiClient apiClient) { * @param user Created user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { + public void createUser(@javax.annotation.Nonnull User user) throws RestClientException { createUserWithHttpInfo(user); } @@ -57,7 +57,7 @@ public void createUser(User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientException { + public ResponseEntity createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -90,7 +90,7 @@ public ResponseEntity createUserWithHttpInfo(User user) throws RestClientE * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithArrayInputWithHttpInfo(user); } @@ -102,7 +102,7 @@ public void createUsersWithArrayInput(List user) throws RestClientExceptio * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -135,7 +135,7 @@ public ResponseEntity createUsersWithArrayInputWithHttpInfo(List use * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithListInputWithHttpInfo(user); } @@ -147,7 +147,7 @@ public void createUsersWithListInput(List user) throws RestClientException * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -181,7 +181,7 @@ public ResponseEntity createUsersWithListInputWithHttpInfo(List user * @param username The name that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientException { + public void deleteUser(@javax.annotation.Nonnull String username) throws RestClientException { deleteUserWithHttpInfo(username); } @@ -194,7 +194,7 @@ public void deleteUser(String username) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientException { + public ResponseEntity deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -231,7 +231,7 @@ public ResponseEntity deleteUserWithHttpInfo(String username) throws RestC * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientException { + public User getUserByName(@javax.annotation.Nonnull String username) throws RestClientException { return getUserByNameWithHttpInfo(username).getBody(); } @@ -245,7 +245,7 @@ public User getUserByName(String username) throws RestClientException { * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientException { + public ResponseEntity getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -284,7 +284,7 @@ public ResponseEntity getUserByNameWithHttpInfo(String username) throws Re * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { return loginUserWithHttpInfo(username, password).getBody(); } @@ -298,7 +298,7 @@ public String loginUser(String username, String password) throws RestClientExcep * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientException { + public ResponseEntity loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -378,7 +378,7 @@ public ResponseEntity logoutUserWithHttpInfo() throws RestClientException * @param user Updated user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { updateUserWithHttpInfo(username, user); } @@ -392,7 +392,7 @@ public void updateUser(String username, User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientException { + public ResponseEntity updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'username' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java index 0307e5febcbf..d4a87120a76b 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/AnotherFakeApi.java @@ -45,7 +45,7 @@ public AnotherFakeApi(ApiClient apiClient) { * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client call123testSpecialTags(Client client) throws RestClientException { + public Client call123testSpecialTags(@javax.annotation.Nonnull Client client) throws RestClientException { return call123testSpecialTagsWithHttpInfo(client).getBody(); } @@ -57,7 +57,7 @@ public Client call123testSpecialTags(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity call123testSpecialTagsWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity call123testSpecialTagsWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java index 729ffb7db428..3366149610e2 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeApi.java @@ -138,7 +138,7 @@ public ResponseEntity fakeHealthGetWithHttpInfo() throws Rest * @param header1 header parameter (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws RestClientException { + public void fakeHttpSignatureTest(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws RestClientException { fakeHttpSignatureTestWithHttpInfo(pet, query1, header1); } @@ -152,7 +152,7 @@ public void fakeHttpSignatureTest(Pet pet, String query1, String header1) throws * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeHttpSignatureTestWithHttpInfo(Pet pet, String query1, String header1) throws RestClientException { + public ResponseEntity fakeHttpSignatureTestWithHttpInfo(@javax.annotation.Nonnull Pet pet, @javax.annotation.Nullable String query1, @javax.annotation.Nullable String header1) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -192,7 +192,7 @@ public ResponseEntity fakeHttpSignatureTestWithHttpInfo(Pet pet, String qu * @return Boolean * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientException { + public Boolean fakeOuterBooleanSerialize(@javax.annotation.Nullable Boolean body) throws RestClientException { return fakeOuterBooleanSerializeWithHttpInfo(body).getBody(); } @@ -204,7 +204,7 @@ public Boolean fakeOuterBooleanSerialize(Boolean body) throws RestClientExceptio * @return ResponseEntity<Boolean> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(Boolean body) throws RestClientException { + public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(@javax.annotation.Nullable Boolean body) throws RestClientException { Object localVarPostBody = body; @@ -235,7 +235,7 @@ public ResponseEntity fakeOuterBooleanSerializeWithHttpInfo(Boolean bod * @return OuterComposite * @throws RestClientException if an error occurs while attempting to invoke the API */ - public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) throws RestClientException { + public OuterComposite fakeOuterCompositeSerialize(@javax.annotation.Nullable OuterComposite outerComposite) throws RestClientException { return fakeOuterCompositeSerializeWithHttpInfo(outerComposite).getBody(); } @@ -247,7 +247,7 @@ public OuterComposite fakeOuterCompositeSerialize(OuterComposite outerComposite) * @return ResponseEntity<OuterComposite> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(OuterComposite outerComposite) throws RestClientException { + public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(@javax.annotation.Nullable OuterComposite outerComposite) throws RestClientException { Object localVarPostBody = outerComposite; @@ -278,7 +278,7 @@ public ResponseEntity fakeOuterCompositeSerializeWithHttpInfo(Ou * @return BigDecimal * @throws RestClientException if an error occurs while attempting to invoke the API */ - public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientException { + public BigDecimal fakeOuterNumberSerialize(@javax.annotation.Nullable BigDecimal body) throws RestClientException { return fakeOuterNumberSerializeWithHttpInfo(body).getBody(); } @@ -290,7 +290,7 @@ public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws RestClientExc * @return ResponseEntity<BigDecimal> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecimal body) throws RestClientException { + public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(@javax.annotation.Nullable BigDecimal body) throws RestClientException { Object localVarPostBody = body; @@ -321,7 +321,7 @@ public ResponseEntity fakeOuterNumberSerializeWithHttpInfo(BigDecima * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String fakeOuterStringSerialize(String body) throws RestClientException { + public String fakeOuterStringSerialize(@javax.annotation.Nullable String body) throws RestClientException { return fakeOuterStringSerializeWithHttpInfo(body).getBody(); } @@ -333,7 +333,7 @@ public String fakeOuterStringSerialize(String body) throws RestClientException { * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) throws RestClientException { + public ResponseEntity fakeOuterStringSerializeWithHttpInfo(@javax.annotation.Nullable String body) throws RestClientException { Object localVarPostBody = body; @@ -364,7 +364,7 @@ public ResponseEntity fakeOuterStringSerializeWithHttpInfo(String body) * @return OuterObjectWithEnumProperty * @throws RestClientException if an error occurs while attempting to invoke the API */ - public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { + public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { return fakePropertyEnumIntegerSerializeWithHttpInfo(outerObjectWithEnumProperty).getBody(); } @@ -376,7 +376,7 @@ public OuterObjectWithEnumProperty fakePropertyEnumIntegerSerialize(OuterObjectW * @return ResponseEntity<OuterObjectWithEnumProperty> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { + public ResponseEntity fakePropertyEnumIntegerSerializeWithHttpInfo(@javax.annotation.Nonnull OuterObjectWithEnumProperty outerObjectWithEnumProperty) throws RestClientException { Object localVarPostBody = outerObjectWithEnumProperty; // verify the required parameter 'outerObjectWithEnumProperty' is set @@ -411,7 +411,7 @@ public ResponseEntity fakePropertyEnumIntegerSerial * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testAdditionalPropertiesReference(Map requestBody) throws RestClientException { + public void testAdditionalPropertiesReference(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testAdditionalPropertiesReferenceWithHttpInfo(requestBody); } @@ -423,7 +423,7 @@ public void testAdditionalPropertiesReference(Map requestBody) t * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -456,7 +456,7 @@ public ResponseEntity testAdditionalPropertiesReferenceWithHttpInfo(Map testBodyWithBinaryWithHttpInfo(File body) throws RestClientException { + public ResponseEntity testBodyWithBinaryWithHttpInfo(@javax.annotation.Nullable File body) throws RestClientException { Object localVarPostBody = body; // verify the required parameter 'body' is set @@ -501,7 +501,7 @@ public ResponseEntity testBodyWithBinaryWithHttpInfo(File body) throws Res * @param fileSchemaTestClass (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) throws RestClientException { + public void testBodyWithFileSchema(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientException { testBodyWithFileSchemaWithHttpInfo(fileSchemaTestClass); } @@ -513,7 +513,7 @@ public void testBodyWithFileSchema(FileSchemaTestClass fileSchemaTestClass) thro * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass fileSchemaTestClass) throws RestClientException { + public ResponseEntity testBodyWithFileSchemaWithHttpInfo(@javax.annotation.Nonnull FileSchemaTestClass fileSchemaTestClass) throws RestClientException { Object localVarPostBody = fileSchemaTestClass; // verify the required parameter 'fileSchemaTestClass' is set @@ -547,7 +547,7 @@ public ResponseEntity testBodyWithFileSchemaWithHttpInfo(FileSchemaTestCla * @param user (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testBodyWithQueryParams(String query, User user) throws RestClientException { + public void testBodyWithQueryParams(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws RestClientException { testBodyWithQueryParamsWithHttpInfo(query, user); } @@ -560,7 +560,7 @@ public void testBodyWithQueryParams(String query, User user) throws RestClientEx * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testBodyWithQueryParamsWithHttpInfo(String query, User user) throws RestClientException { + public ResponseEntity testBodyWithQueryParamsWithHttpInfo(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'query' is set @@ -602,7 +602,7 @@ public ResponseEntity testBodyWithQueryParamsWithHttpInfo(String query, Us * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClientModel(Client client) throws RestClientException { + public Client testClientModel(@javax.annotation.Nonnull Client client) throws RestClientException { return testClientModelWithHttpInfo(client).getBody(); } @@ -614,7 +614,7 @@ public Client testClientModel(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClientModelWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity testClientModelWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set @@ -663,7 +663,7 @@ public ResponseEntity testClientModelWithHttpInfo(Client client) throws * @param paramCallback None (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testEndpointParameters(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientException { + public void testEndpointParameters(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws RestClientException { testEndpointParametersWithHttpInfo(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, string, binary, date, dateTime, password, paramCallback); } @@ -689,7 +689,7 @@ public void testEndpointParameters(BigDecimal number, Double _double, String pat * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEndpointParametersWithHttpInfo(BigDecimal number, Double _double, String patternWithoutDelimiter, byte[] _byte, Integer integer, Integer int32, Long int64, Float _float, String string, File binary, LocalDate date, OffsetDateTime dateTime, String password, String paramCallback) throws RestClientException { + public ResponseEntity testEndpointParametersWithHttpInfo(@javax.annotation.Nonnull BigDecimal number, @javax.annotation.Nonnull Double _double, @javax.annotation.Nonnull String patternWithoutDelimiter, @javax.annotation.Nonnull byte[] _byte, @javax.annotation.Nullable Integer integer, @javax.annotation.Nullable Integer int32, @javax.annotation.Nullable Long int64, @javax.annotation.Nullable Float _float, @javax.annotation.Nullable String string, @javax.annotation.Nullable File binary, @javax.annotation.Nullable LocalDate date, @javax.annotation.Nullable OffsetDateTime dateTime, @javax.annotation.Nullable String password, @javax.annotation.Nullable String paramCallback) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'number' is set @@ -775,7 +775,7 @@ public ResponseEntity testEndpointParametersWithHttpInfo(BigDecimal number * @param enumFormString Form parameter enum test (string) (optional, default to -efg) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testEnumParameters(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientException { + public void testEnumParameters(@javax.annotation.Nullable List enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List enumQueryModelArray, @javax.annotation.Nullable List enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws RestClientException { testEnumParametersWithHttpInfo(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumQueryModelArray, enumFormStringArray, enumFormString); } @@ -796,7 +796,7 @@ public void testEnumParameters(List enumHeaderStringArray, String enumHe * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testEnumParametersWithHttpInfo(List enumHeaderStringArray, String enumHeaderString, List enumQueryStringArray, String enumQueryString, Integer enumQueryInteger, Double enumQueryDouble, List enumQueryModelArray, List enumFormStringArray, String enumFormString) throws RestClientException { + public ResponseEntity testEnumParametersWithHttpInfo(@javax.annotation.Nullable List enumHeaderStringArray, @javax.annotation.Nullable String enumHeaderString, @javax.annotation.Nullable List enumQueryStringArray, @javax.annotation.Nullable String enumQueryString, @javax.annotation.Nullable Integer enumQueryInteger, @javax.annotation.Nullable Double enumQueryDouble, @javax.annotation.Nullable List enumQueryModelArray, @javax.annotation.Nullable List enumFormStringArray, @javax.annotation.Nullable String enumFormString) throws RestClientException { Object localVarPostBody = null; @@ -846,7 +846,7 @@ public ResponseEntity testEnumParametersWithHttpInfo(List enumHead * @param int64Group Integer in group parameters (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientException { + public void testGroupParameters(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws RestClientException { testGroupParametersWithHttpInfo(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group); } @@ -863,7 +863,7 @@ public void testGroupParameters(Integer requiredStringGroup, Boolean requiredBoo * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testGroupParametersWithHttpInfo(Integer requiredStringGroup, Boolean requiredBooleanGroup, Long requiredInt64Group, Integer stringGroup, Boolean booleanGroup, Long int64Group) throws RestClientException { + public ResponseEntity testGroupParametersWithHttpInfo(@javax.annotation.Nonnull Integer requiredStringGroup, @javax.annotation.Nonnull Boolean requiredBooleanGroup, @javax.annotation.Nonnull Long requiredInt64Group, @javax.annotation.Nullable Integer stringGroup, @javax.annotation.Nullable Boolean booleanGroup, @javax.annotation.Nullable Long int64Group) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'requiredStringGroup' is set @@ -915,7 +915,7 @@ public ResponseEntity testGroupParametersWithHttpInfo(Integer requiredStri * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testInlineAdditionalProperties(Map requestBody) throws RestClientException { + public void testInlineAdditionalProperties(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testInlineAdditionalPropertiesWithHttpInfo(requestBody); } @@ -927,7 +927,7 @@ public void testInlineAdditionalProperties(Map requestBody) thro * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set @@ -960,7 +960,7 @@ public ResponseEntity testInlineAdditionalPropertiesWithHttpInfo(Map testInlineFreeformAdditionalPropertiesWithHttpInfo(TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientException { + public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(@javax.annotation.Nonnull TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest) throws RestClientException { Object localVarPostBody = testInlineFreeformAdditionalPropertiesRequest; // verify the required parameter 'testInlineFreeformAdditionalPropertiesRequest' is set @@ -1006,7 +1006,7 @@ public ResponseEntity testInlineFreeformAdditionalPropertiesWithHttpInfo(T * @param param2 field2 (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testJsonFormData(String param, String param2) throws RestClientException { + public void testJsonFormData(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws RestClientException { testJsonFormDataWithHttpInfo(param, param2); } @@ -1019,7 +1019,7 @@ public void testJsonFormData(String param, String param2) throws RestClientExcep * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testJsonFormDataWithHttpInfo(String param, String param2) throws RestClientException { + public ResponseEntity testJsonFormDataWithHttpInfo(@javax.annotation.Nonnull String param, @javax.annotation.Nonnull String param2) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'param' is set @@ -1062,7 +1062,7 @@ public ResponseEntity testJsonFormDataWithHttpInfo(String param, String pa * @param childWithNullable request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testNullable(ChildWithNullable childWithNullable) throws RestClientException { + public void testNullable(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientException { testNullableWithHttpInfo(childWithNullable); } @@ -1074,7 +1074,7 @@ public void testNullable(ChildWithNullable childWithNullable) throws RestClientE * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testNullableWithHttpInfo(ChildWithNullable childWithNullable) throws RestClientException { + public ResponseEntity testNullableWithHttpInfo(@javax.annotation.Nonnull ChildWithNullable childWithNullable) throws RestClientException { Object localVarPostBody = childWithNullable; // verify the required parameter 'childWithNullable' is set @@ -1113,7 +1113,7 @@ public ResponseEntity testNullableWithHttpInfo(ChildWithNullable childWith * @param language (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testQueryParameterCollectionFormat(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientException { + public void testQueryParameterCollectionFormat(@javax.annotation.Nonnull List pipe, @javax.annotation.Nonnull List ioutil, @javax.annotation.Nonnull List http, @javax.annotation.Nonnull List url, @javax.annotation.Nonnull List context, @javax.annotation.Nonnull String allowEmpty, @javax.annotation.Nullable Map language) throws RestClientException { testQueryParameterCollectionFormatWithHttpInfo(pipe, ioutil, http, url, context, allowEmpty, language); } @@ -1131,7 +1131,7 @@ public void testQueryParameterCollectionFormat(List pipe, List i * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(List pipe, List ioutil, List http, List url, List context, String allowEmpty, Map language) throws RestClientException { + public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(@javax.annotation.Nonnull List pipe, @javax.annotation.Nonnull List ioutil, @javax.annotation.Nonnull List http, @javax.annotation.Nonnull List url, @javax.annotation.Nonnull List context, @javax.annotation.Nonnull String allowEmpty, @javax.annotation.Nullable Map language) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'pipe' is set @@ -1196,7 +1196,7 @@ public ResponseEntity testQueryParameterCollectionFormatWithHttpInfo(List< * @param requestBody request body (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void testStringMapReference(Map requestBody) throws RestClientException { + public void testStringMapReference(@javax.annotation.Nonnull Map requestBody) throws RestClientException { testStringMapReferenceWithHttpInfo(requestBody); } @@ -1208,7 +1208,7 @@ public void testStringMapReference(Map requestBody) throws RestC * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testStringMapReferenceWithHttpInfo(Map requestBody) throws RestClientException { + public ResponseEntity testStringMapReferenceWithHttpInfo(@javax.annotation.Nonnull Map requestBody) throws RestClientException { Object localVarPostBody = requestBody; // verify the required parameter 'requestBody' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java index 9f560f1a5ca1..2975dde1f524 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/FakeClassnameTags123Api.java @@ -45,7 +45,7 @@ public FakeClassnameTags123Api(ApiClient apiClient) { * @return Client * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Client testClassname(Client client) throws RestClientException { + public Client testClassname(@javax.annotation.Nonnull Client client) throws RestClientException { return testClassnameWithHttpInfo(client).getBody(); } @@ -57,7 +57,7 @@ public Client testClassname(Client client) throws RestClientException { * @return ResponseEntity<Client> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity testClassnameWithHttpInfo(Client client) throws RestClientException { + public ResponseEntity testClassnameWithHttpInfo(@javax.annotation.Nonnull Client client) throws RestClientException { Object localVarPostBody = client; // verify the required parameter 'client' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java index c5b72e2838d1..58c8bced78ae 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/PetApi.java @@ -48,7 +48,7 @@ public PetApi(ApiClient apiClient) { * @param pet Pet object that needs to be added to the store (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void addPet(Pet pet) throws RestClientException { + public void addPet(@javax.annotation.Nonnull Pet pet) throws RestClientException { addPetWithHttpInfo(pet); } @@ -61,7 +61,7 @@ public void addPet(Pet pet) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity addPetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -96,7 +96,7 @@ public ResponseEntity addPetWithHttpInfo(Pet pet) throws RestClientExcepti * @param apiKey (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deletePet(Long petId, String apiKey) throws RestClientException { + public void deletePet(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { deletePetWithHttpInfo(petId, apiKey); } @@ -110,7 +110,7 @@ public void deletePet(Long petId, String apiKey) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) throws RestClientException { + public ResponseEntity deletePetWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String apiKey) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -149,7 +149,7 @@ public ResponseEntity deletePetWithHttpInfo(Long petId, String apiKey) thr * @return List<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public List findPetsByStatus(List status) throws RestClientException { + public List findPetsByStatus(@javax.annotation.Nonnull List status) throws RestClientException { return findPetsByStatusWithHttpInfo(status).getBody(); } @@ -162,7 +162,7 @@ public List findPetsByStatus(List status) throws RestClientExceptio * @return ResponseEntity<List<Pet>> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity> findPetsByStatusWithHttpInfo(List status) throws RestClientException { + public ResponseEntity> findPetsByStatusWithHttpInfo(@javax.annotation.Nonnull List status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'status' is set @@ -202,7 +202,7 @@ public ResponseEntity> findPetsByStatusWithHttpInfo(List statu * @deprecated */ @Deprecated - public Set findPetsByTags(Set tags) throws RestClientException { + public Set findPetsByTags(@javax.annotation.Nonnull Set tags) throws RestClientException { return findPetsByTagsWithHttpInfo(tags).getBody(); } @@ -217,7 +217,7 @@ public Set findPetsByTags(Set tags) throws RestClientException { * @deprecated */ @Deprecated - public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) throws RestClientException { + public ResponseEntity> findPetsByTagsWithHttpInfo(@javax.annotation.Nonnull Set tags) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'tags' is set @@ -256,7 +256,7 @@ public ResponseEntity> findPetsByTagsWithHttpInfo(Set tags) thr * @return Pet * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Pet getPetById(Long petId) throws RestClientException { + public Pet getPetById(@javax.annotation.Nonnull Long petId) throws RestClientException { return getPetByIdWithHttpInfo(petId).getBody(); } @@ -270,7 +270,7 @@ public Pet getPetById(Long petId) throws RestClientException { * @return ResponseEntity<Pet> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientException { + public ResponseEntity getPetByIdWithHttpInfo(@javax.annotation.Nonnull Long petId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -309,7 +309,7 @@ public ResponseEntity getPetByIdWithHttpInfo(Long petId) throws RestClientE * @param pet Pet object that needs to be added to the store (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePet(Pet pet) throws RestClientException { + public void updatePet(@javax.annotation.Nonnull Pet pet) throws RestClientException { updatePetWithHttpInfo(pet); } @@ -324,7 +324,7 @@ public void updatePet(Pet pet) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientException { + public ResponseEntity updatePetWithHttpInfo(@javax.annotation.Nonnull Pet pet) throws RestClientException { Object localVarPostBody = pet; // verify the required parameter 'pet' is set @@ -360,7 +360,7 @@ public ResponseEntity updatePetWithHttpInfo(Pet pet) throws RestClientExce * @param status Updated status of the pet (optional) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updatePetWithForm(Long petId, String name, String status) throws RestClientException { + public void updatePetWithForm(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { updatePetWithFormWithHttpInfo(petId, name, status); } @@ -375,7 +375,7 @@ public void updatePetWithForm(Long petId, String name, String status) throws Res * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String name, String status) throws RestClientException { + public ResponseEntity updatePetWithFormWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String status) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -419,7 +419,7 @@ public ResponseEntity updatePetWithFormWithHttpInfo(Long petId, String nam * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ModelApiResponse uploadFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { return uploadFileWithHttpInfo(petId, additionalMetadata, _file).getBody(); } @@ -433,7 +433,7 @@ public ModelApiResponse uploadFile(Long petId, String additionalMetadata, File _ * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithHttpInfo(Long petId, String additionalMetadata, File _file) throws RestClientException { + public ResponseEntity uploadFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nullable String additionalMetadata, @javax.annotation.Nullable File _file) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set @@ -479,7 +479,7 @@ public ResponseEntity uploadFileWithHttpInfo(Long petId, Strin * @return ModelApiResponse * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile, String additionalMetadata) throws RestClientException { + public ModelApiResponse uploadFileWithRequiredFile(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws RestClientException { return uploadFileWithRequiredFileWithHttpInfo(petId, requiredFile, additionalMetadata).getBody(); } @@ -493,7 +493,7 @@ public ModelApiResponse uploadFileWithRequiredFile(Long petId, File requiredFile * @return ResponseEntity<ModelApiResponse> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(Long petId, File requiredFile, String additionalMetadata) throws RestClientException { + public ResponseEntity uploadFileWithRequiredFileWithHttpInfo(@javax.annotation.Nonnull Long petId, @javax.annotation.Nonnull File requiredFile, @javax.annotation.Nullable String additionalMetadata) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'petId' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java index 615a3cbf5ba3..04381b6658be 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/StoreApi.java @@ -45,7 +45,7 @@ public StoreApi(ApiClient apiClient) { * @param orderId ID of the order that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteOrder(String orderId) throws RestClientException { + public void deleteOrder(@javax.annotation.Nonnull String orderId) throws RestClientException { deleteOrderWithHttpInfo(orderId); } @@ -58,7 +58,7 @@ public void deleteOrder(String orderId) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteOrderWithHttpInfo(String orderId) throws RestClientException { + public ResponseEntity deleteOrderWithHttpInfo(@javax.annotation.Nonnull String orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -134,7 +134,7 @@ public ResponseEntity> getInventoryWithHttpInfo() throws Re * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order getOrderById(Long orderId) throws RestClientException { + public Order getOrderById(@javax.annotation.Nonnull Long orderId) throws RestClientException { return getOrderByIdWithHttpInfo(orderId).getBody(); } @@ -148,7 +148,7 @@ public Order getOrderById(Long orderId) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestClientException { + public ResponseEntity getOrderByIdWithHttpInfo(@javax.annotation.Nonnull Long orderId) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'orderId' is set @@ -186,7 +186,7 @@ public ResponseEntity getOrderByIdWithHttpInfo(Long orderId) throws RestC * @return Order * @throws RestClientException if an error occurs while attempting to invoke the API */ - public Order placeOrder(Order order) throws RestClientException { + public Order placeOrder(@javax.annotation.Nonnull Order order) throws RestClientException { return placeOrderWithHttpInfo(order).getBody(); } @@ -199,7 +199,7 @@ public Order placeOrder(Order order) throws RestClientException { * @return ResponseEntity<Order> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity placeOrderWithHttpInfo(Order order) throws RestClientException { + public ResponseEntity placeOrderWithHttpInfo(@javax.annotation.Nonnull Order order) throws RestClientException { Object localVarPostBody = order; // verify the required parameter 'order' is set diff --git a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java index 1dcd28332b06..b1e341816965 100644 --- a/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java +++ b/samples/client/petstore/java/resttemplate/src/main/java/org/openapitools/client/api/UserApi.java @@ -45,7 +45,7 @@ public UserApi(ApiClient apiClient) { * @param user Created user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUser(User user) throws RestClientException { + public void createUser(@javax.annotation.Nonnull User user) throws RestClientException { createUserWithHttpInfo(user); } @@ -57,7 +57,7 @@ public void createUser(User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUserWithHttpInfo(User user) throws RestClientException { + public ResponseEntity createUserWithHttpInfo(@javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -90,7 +90,7 @@ public ResponseEntity createUserWithHttpInfo(User user) throws RestClientE * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithArrayInput(List user) throws RestClientException { + public void createUsersWithArrayInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithArrayInputWithHttpInfo(user); } @@ -102,7 +102,7 @@ public void createUsersWithArrayInput(List user) throws RestClientExceptio * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithArrayInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithArrayInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -135,7 +135,7 @@ public ResponseEntity createUsersWithArrayInputWithHttpInfo(List use * @param user List of user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void createUsersWithListInput(List user) throws RestClientException { + public void createUsersWithListInput(@javax.annotation.Nonnull List user) throws RestClientException { createUsersWithListInputWithHttpInfo(user); } @@ -147,7 +147,7 @@ public void createUsersWithListInput(List user) throws RestClientException * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity createUsersWithListInputWithHttpInfo(List user) throws RestClientException { + public ResponseEntity createUsersWithListInputWithHttpInfo(@javax.annotation.Nonnull List user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'user' is set @@ -181,7 +181,7 @@ public ResponseEntity createUsersWithListInputWithHttpInfo(List user * @param username The name that needs to be deleted (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void deleteUser(String username) throws RestClientException { + public void deleteUser(@javax.annotation.Nonnull String username) throws RestClientException { deleteUserWithHttpInfo(username); } @@ -194,7 +194,7 @@ public void deleteUser(String username) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity deleteUserWithHttpInfo(String username) throws RestClientException { + public ResponseEntity deleteUserWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -231,7 +231,7 @@ public ResponseEntity deleteUserWithHttpInfo(String username) throws RestC * @return User * @throws RestClientException if an error occurs while attempting to invoke the API */ - public User getUserByName(String username) throws RestClientException { + public User getUserByName(@javax.annotation.Nonnull String username) throws RestClientException { return getUserByNameWithHttpInfo(username).getBody(); } @@ -245,7 +245,7 @@ public User getUserByName(String username) throws RestClientException { * @return ResponseEntity<User> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity getUserByNameWithHttpInfo(String username) throws RestClientException { + public ResponseEntity getUserByNameWithHttpInfo(@javax.annotation.Nonnull String username) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -284,7 +284,7 @@ public ResponseEntity getUserByNameWithHttpInfo(String username) throws Re * @return String * @throws RestClientException if an error occurs while attempting to invoke the API */ - public String loginUser(String username, String password) throws RestClientException { + public String loginUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { return loginUserWithHttpInfo(username, password).getBody(); } @@ -298,7 +298,7 @@ public String loginUser(String username, String password) throws RestClientExcep * @return ResponseEntity<String> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity loginUserWithHttpInfo(String username, String password) throws RestClientException { + public ResponseEntity loginUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull String password) throws RestClientException { Object localVarPostBody = null; // verify the required parameter 'username' is set @@ -378,7 +378,7 @@ public ResponseEntity logoutUserWithHttpInfo() throws RestClientException * @param user Updated user object (required) * @throws RestClientException if an error occurs while attempting to invoke the API */ - public void updateUser(String username, User user) throws RestClientException { + public void updateUser(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { updateUserWithHttpInfo(username, user); } @@ -392,7 +392,7 @@ public void updateUser(String username, User user) throws RestClientException { * @return ResponseEntity<Void> * @throws RestClientException if an error occurs while attempting to invoke the API */ - public ResponseEntity updateUserWithHttpInfo(String username, User user) throws RestClientException { + public ResponseEntity updateUserWithHttpInfo(@javax.annotation.Nonnull String username, @javax.annotation.Nonnull User user) throws RestClientException { Object localVarPostBody = user; // verify the required parameter 'username' is set From e2889db7b0425d1fd62d7e6dcb84d4db8bf9bfe8 Mon Sep 17 00:00:00 2001 From: William Cheng Date: Mon, 21 Sep 2026 20:29:36 +0800 Subject: [PATCH 3/6] Add BetterFollowers as bronze sponsor (#24976) --- README.md | 1 + website/src/dynamic/sponsors.yml | 5 +++++ .../static/img/companies/betterfollowers.png | Bin 0 -> 138955 bytes 3 files changed, 6 insertions(+) create mode 100644 website/static/img/companies/betterfollowers.png diff --git a/README.md b/README.md index d271a445cd37..5fb87f7a9cc1 100644 --- a/README.md +++ b/README.md @@ -80,6 +80,7 @@ If you find OpenAPI Generator useful for work, please consider asking your compa [](https://socialboom.io/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship) [](https://www.mediamister.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship) [](https://www.instant-famous.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship) +[](https://betterfollowers.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship)
diff --git a/website/src/dynamic/sponsors.yml b/website/src/dynamic/sponsors.yml index 7b353f91e4b2..f04d15c8694b 100755 --- a/website/src/dynamic/sponsors.yml +++ b/website/src/dynamic/sponsors.yml @@ -188,3 +188,8 @@ image: "img/companies/instantfamous.png" infoLink: "https://www.instant-famous.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship" bronze: true +- + caption: "BetterFollowers" + image: "img/companies/betterfollowers.png" + infoLink: "https://betterfollowers.com/?utm_source=openapi-generator&utm_medium=sponsorship&utm_campaign=oss-sponsorship" + bronze: true diff --git a/website/static/img/companies/betterfollowers.png b/website/static/img/companies/betterfollowers.png new file mode 100644 index 0000000000000000000000000000000000000000..71526412780c8616f2d404b0d2c53655708824de GIT binary patch literal 138955 zcmcF~^;4Wpuyydo7YS~QzQKYM92Q&L-Ge&>O>kJ;A-KDR;1UQB9D=(pmY_ic!R1?$ zd#mn0@cpp0_3TzXGt<+3&YA9>NL6K7Yz#7t7cX95%R!{nU%Wshe(?gK8Gs7^Wz@Ae z7ygCdrY;M9@p+tLAO3)BEukdw;zeCN=DisT{2AQ^qUZMF1rfvZ2SHAq{`AF*rxH0S z2~BU~!w0=&OSyNukq@Keo+lnxx?Bx>FJh0WGIm^`Js|4;X6Piw%&Zh=TgYhzb7pu?vfF^X>D`@E=Yi z-{Q0X?;m;p{eSv{R&gajC7lB#i61ivExLoAk-U{!7MMN~KLj;ri9Qd%iLRI#4WAJS zG6cF!*K_RC*DeNH3&?5p%5eD&n2!9C@w}2Q^5h-(%qK*k3EI#fM$1`Zr5#UvXQyOl z!ZaS-#Uej( zby7zA2$3E?wP)Dv=~cMN<7<+Dqr4>lqdccDF8Fw5sN?g!19vL8$u68`J-cLJT}n>F z8=QxxlWCZLQj!G+lu z?)AOTTZsC1UnV%0eVnIF9^En@FrjA9hLxcVHz@MvHS|9PFnQt)PJIK)E^6DH7STed zM9Uq{rUmi9k1uJ|Qi?;#nHiP zB9VepYvp;uWuf%NX5<15C=(O=)DP+XLS0IC8#!Ye|7Q*YQo^m$KD*B^nPPVaE;H1V zRLtss%#P3rtTWl!i}=b9B>uZ2Ap` z5~8yJZ6U6K{xswHLamU1D~7F2wx;d$Mk2UR9shH!IAGlI)M`M;&IU8K!XDc676lJC zM34a=2#HK^|3C*wKm?(Hqo7*isWe9~q6J`QyjJaEMFO2l5T<5f54eT%tQC9u;a`}5 zAxJ|&?B>9gEiQX6Ep0>4tTU(%4V@Vh0hAhb2V)CU21!98TjlN2rY0iBIFG!OFCQmt zoVsM*`0L(0`^qlfKW9ZqqN%o_HnMu$jt^D00=GBdYR8D(byTbZsQO~0=VW*Hv$-J%dE+yc4xfa z)Dy$oZ`l7a5Y<*tm#1$B1dBbHHojp$vuQ!*fjjraKj*e4Elr6SYz8+T)YG5IN>mJ%|k;Q zFz^W_d6Zn63l^fmU!-t&BqM8}lBLax3 zhl8$32c41M^r4tSM3pIVSP9LmBIRmY@WszwiF0A}WLT<|m`Houp0^UiT`C!V(O zc}6nqzi(@ZXr!ltF&vwe!Mdas(P}%yiQH_+0FxZ}a)Kzda%s8C%y>rs6{?5g1RC}L z?1~Z<0SHn_m1a}iay^p-14hg7ozgx>3_ZV1xjo;{AGE-{&Oi+jB&jjU-iWg5c8F1m)M!rrrio1D;xFrrrY!w78YKBIjzkDl`?c|V% zJY7zPJ!N7h1%Z$RL5CuS%E736)0$-T%}~^~%RqKmvClpG+39T~+cn&-bbljm0-qi) zH9qo=-{z!C`R>{eoM*}xKDmFk|KmHBfSOqkdsF^@%MqXI%2&%#=~7NoILieinfu(? zTvKhfabO_}Hq-%-^vjNCC<*zCD5PML_(-2L+sn0**mfQys3(q@xVm_fJ%c-Q@92Mk zZldfRFDu7fN~yO19$F~_UVJJ3<=>%I%+6Bu;|c!c&UG>`#af|{mZL}Bmoc+^wrqELE;G8X7^)D1r zh9IkV5j)2!w$vuH>?e{02~MSBhMEbJb5u@Dn`Bs+Jt39HzpnZ>OGlVcu>59#nK)M5 znR7u5G-_DY zC73Ztm+3)Hq~HSm=Kqt^c_aQ!^VkiU~u z7P5fO;T;{LxqGc6%M9EIsM|nZ?Pq{QJIwS^wvX(IUaHV$X_Rl6;nIB0D5tSYE@*fa z4BNmpxgPik%y&=IxB=Jh;E z1Qr3|cRzttSj)j|jpa?Hot*oV3c4UA0c6s1Xp0p@IVs{BzOzSUCJePbfzxNM++Xi6 zqk#QM%ji0*vB7!$ZHbB$QK~{&X4V!%Ek$~6&oKZ)kw9$(dkZ%mr@l(ed!;_6CCCE^f1Y(kk=p6rca&8n^Js%SHY-4qw zp9(g9k_>*LRy)mDa{@Q!@7Ce#m7T06-boQjfKq6 z8CXZU%6a)_?d&z@W(rbOJw1CU!9Ncrx1f(1Y{Xr&ZoMGpLDRW-^Jg*msAp->IJ0x4 z^cRYzs*BGkm!rBnVOH%Gqh)L2-j0lZu=8X|mC|g+XBzay&pA~uK|DhoOam{ES{2#@ zGCZ&RdWMVs*uWXxrSdNTWMdExP-~<0^=9#m_%v=NlscmuSkKvT#ad>ae2nO9@&bYh zc`q((;}SG&A`*e-qUDOjzKc-=S&zDTL~25q6-g!jbGT|oGNh5VP`s@-(=kka+nf}y z3!*u~H|KFPy6(aoabFv3h^Y)c>vr3JG4dUV`>dN|FE^N#`0>MV!q_5|I0rt8)9kw= z^R*;mbEuj1u3NvC2t|K5uDen4H;dPkdUa)wA3^56!@}@ZA8%l)R8~LTizl3Vdi{Om z<)%+x@5;=@5Ijr(|H34wrzs1Kda~nAD-+GR`!aA;P<>(15c+wmR#NpG!J;iF^+ZT5 zc-BWp>{B)CSaY70Ut(HO>XVuyzXJgqcD}Z#w>WbQ@>Dcof~QQTGhKAtBIUH`hmhlO z7U&N&6$~yogue0kw@c_f-crI}CE?%-d*HXxzDhizET#s&@_e~-`@@>JuZe8iRp~zt zkOcjwEUiz`pk^Kqy5O&z#P-@$Z#UbCMcj%Rcte(>MngSMjN0Hw9jf(~a|KcMv*!`m z{&$2k_M;H5Jsi>E=sReEbhEMe7KI)LC<9=65Kj9#-IPX-m$Z4Zw@kI(iZ-L9?5K19 zF&LBJEf{U@WAxz00Zv`3T$@L$ltD@1CKDpMQSNuZCw+_NKxtVomyE}?37fbR0t?<} za>;)84-62&ZZ27mx45=f>_8&yQB?ZN@86PhTn^fTg}c;xQG&6rar9L3{hfoQ%0nY# z(FsD}(gmJdycr>*}i z&hY~shW}Nup_QF3ebbr~OG`|^+bg1ck`n`pv;RSt2li3I|kkedZU@jPL=xT$q` z1YtL=)H=Q7kNL5-*?2of`Gii+w1Dxm5GS2n;hI2QfE$Q(tK@qJ|jL1!azKq0krU zXEFTSrT$sA5rgN5eP#ZJT&^IXnBnY{{irF;#<>e@gOhj@$ioKKlpHTEi)Hqeut}wj zVx$|Pv^Z>T7X6a9WZ1sC_W}27UbZy z$9)#aH-MGC_f7P6ufmsl_ENHcs?HK_T{oB5%PEw$5TV9>D94G}eAQX0JvM;Z=G*ew z?scWwq!;~)_y{k))qRHg(iT{g7QPL*pg3C+Tyenf{=rvZLUOXk3%@zuA#C%Q&6;Zi^E#N)@T#t}3gC0Z=X zf?pqB>9D-M52#N356jr0jG371LaWwI6ywKhF{+wu@HtR6sHfH)?Ts-%xJ?c48 zXsn+3nPp}2KHxIjHYx#bre@sz<1VSY4eP!l1L&N^ssJ4NyZ?^&5tMy6V;m6rxO^1> zqslfCpOK7$PL+W_zLIqffq+muqKZ|ImS2IW`#-1VeD0oPYnw}aATYA3M2k&HR&pH! zbYjhEhh8ICEjjh_FfX}iG!YEhITE~n$*MV0_zJHlooDq;xPQJLecKtvL-onzpVV{d(NB|Du5y3Lx z8417eGA>wZN8U%CZaubsUMA(gWg^ffDBDmQ=C_{{6dv}z#oV_7E{`rQc-NCUrE>7q z-2Mm~-$3u|tf(&k8R)BF&%!JecUbsng3?T?f~SV1RoHNd=Wbr@pEb!y_64pSf{w>W z`g+Mz)}PlE`)^&SLlBbq{Yz(#LqEtKV!azqLC{>fBNd{$=bGUR{(ru_a*0$26#!UK zkJkk2C9x+@TR7>3daNWHRyvW?& z*EVu6qI%tL8F81Vlwr93@t#*X*?&jR`8PUZBQ86K?={=f=u{%zdsYd`_0_#KAr zz|MvV6Yt?TY>C_e5u>d}%74GB>6`+>Mv>kgyG{Q-P1Ud7$LDgzPR=2P!lNl8m01p= zjxpmUurN8uGSflSR}0B-?*!7d=`w zc=jYSB&#w0wIp{^^F-y@wq0m3SIVXa{svYTfU-$lGNZBm?12lWT?nA*f6vRi*}d%Z z<7Q4FUJ(V~s9*mGL;r?7$gz@@BdG9F6P*%Vw=eGgfqp#kGl(^{G2Ym`^}ejHLm}m_ z{8ajDVo^z`yP~crZLTm4)p~d*!;vsr0Vtc*OmX0&5_#a6iTOpSNY%z>yH}-<`Rr%T z^7OA5bSYypNng#&a!I$;<}*>}SU+_u>v~u-#&JR?%q+ zq%GpGD6?NK!_r9BZWefO*Q#ir6GSu6zl6#y<#wkOmiJ)49DV|9{;(%VQ`ym7?un-P z<5sFX-7~}A<&{LheV45uU(4#}(0B?>5z9@9av}6Ky;M{XJGv&0-%=$yUo%45U`kHA zpUrkVvf0e5=AXP}(u${eLH=Rc0xAx&ZQGQY$wGa}Xi#_ca6UMjm%aF_^Q{pP!77kOW1KErI4UQrlvr{TrEN*I*C22kK{|6TnJf&X&I z?CzaTqBw0PtD2xl>>#c=cNeX_J}!C!1cFg}kbeSLi9Ft{x}bg#82eEr@D(2L8(a4~ zBPuWdnI+J>QK8|E>S#)7c_)3cWylxptpds5TQ~6`Iw1eZ>>SzU2e(|%M8;kXGeS(p zg5MZwh{;J*l#6P-|2z+l-ioT{F)M<@b)75$|6xbC3AtyRi<;u=i)!U|2*%K&_LAU3@13#vAXWzRp&rkXxFxlX8In(MogFIy z($d@RFK7Ek0jlV>HjOf2m=`U^g#vAn4$dG)G!|ZCo;W83u?yq!P$)02Bm*mY~vhE^kaN3u`D%Z-?rE@SzV zv%CikO_wR8w_Ge826Ssjko;EHh?=4w*pWW81cc7XsyRX~il+ala&~JMA}{Ec2L>xC z*r1N$(4uyH7gUeUdJzE((wc1LtL9U}s13J3Es~eH@Az%aWf>bW!pzXwpSOl|&pI zj*iB)tN`;$dzC;D-_f=3e0@Sh2`%Q&f>Yi`^W{>20zu)i7A#o?^zQTHV>igoibVxy zH?u@L%K3R8Xc}tN*3n`^-Jw8%Tc7uA6TW{oL4j_I9u+D4&5=0cO@rK#cyc(GdZZlL zd;L9;E%r4pRWwZv{PCA$*(u@n4J6Rb3*IS63p( zaFscqY8hJl%Lb(a33&QUq)wpF=Ts2Zk*C!BoFzp0pE3K2(BRHly6zWJDndIdRBS?1 zFq1-zEQ0XTfE1Dbev;F?c3d<0GeAueBE$~ErgB7Oz$7X~AFks1t(-1uq&_MpSE>g5 zMKs^qp<lB~`A*E`lCo>>sl#f#)i1r%f zFYC{@a1Z84j)ztw{59H9qR|}m`(Rb5{UMX5^K^#iCuL=yOS;}Ub%8Vb5diNG=+Qb6 zu8Obp%0P4S2FL?1C1k)0U}|*NJb2Y;S*T`O*gK7bsv1q`IfwHv+g*bn%=N9vD6`!e z?~0w^1Lz`$OOL$mu2qct(qSk9orcJ`);ek|6a&M*!b<$Ap!P%#CEKCO793pHA6hvJ0_oQXR|-7pNuY!l5(#$Q>~BglZY*B&l`$~FRE2M!QQp!Nfum; zY)fC92t+coF%!aXRq{C^Z{!a^9vQxTE@5K)1=bqi=1;t%G3puEhtQp$RCNepq>X;L znK^?3bIRj~!ytpjl5+7r&T95pR*IL6UyitGm}b6*uj}()1UEOJ>S5F&B5#lgB2E zpDrb|wM^j|hwH|_$aar`7f(HHbSDaHI+=-!kMP5MK(s}Lc<$-uzAg7!_$2c?W9b00 zc2nIso)m#jH1LzW`<^D$F8C7^cqGRvAhuq(<0vK z3In!=4W6NSAOhQmrM=?TgY_|!5&S{w%-$4i_{`r@pRCpZ?jb4nn;zEhXfzkI&NzoKbXAbrn4!p(?$jY)s0g&!IdKZ{;q=N_YCkny4kELk!J6|a_-(vnSBoveqGA=UCdtaX z<9KB6Xbxg_-}|+!#T#pm76*@jN- z(l*X{TKGeri~EA1GJFy<|4y`WU})_s6V+M)tV>?FRW1pFfyq1LEz^XFNA()20Q&f(g<+4nKtyWB{x zHOv0WYFizO(||Ii#grLu=N2V@>LONX`|)F*n?Cq=Mxn6R4=@D6z{=Jxo&b17`--+e zGEBhr2_M$KUi9Va2XjMQ+lyy@lKYztzorM#jjd_5wL4E!7=lVgMErPgDo0u#nCb)T zN||bDDqY{R>4=x72UG(%!W>$>I{TRxbeuWnV%{7@rWGlXKs&crBHMdBzG z3B9(30c;*}W*?_0WscnDOGyxe5`sT}lS7E4>z4lZ5Hw}{-OdXKPH-l8m~+ad+5g~za+Gg%Ku zt*d7|qW^pT@&yA%2Kyci;Ay;q_A5pS98=No=DI}RF$ce!V(wp2a&|VCon&VngD7-bsF{){12wOG!J}j zY}R$92{tj)$XIfPm@=a&U|xc8P41^ruoPRwo6!`^*9owL9i1k)b2+H-$fG6qE&WJTeUn@M!v)T!KSO3_|(0#rcOuwAtz_O%I#UX(Uv! z)n*8q$ER6OW?GrR9#46|{EsPJunCTwxc_MNvBvvZ$HOKEc=#u|o;|Lhp zqPYDEr$J#o-)If&Nd#H9Cm=@|;A{XJi5^Hg80g{6Lb%CIqm~TljnMIw8h}SYE(xu> z{*5Ud>hl+swOqZ}>@J!!+yfuE3HXJ=Oj)=-F5SJSK2UaM>D8<&siT7K%Ssh48QV~F zw!h~ARsHmkRIMvUozmi<9p3u1`eFPRSL4^c0sRkl%=mJym|>)5RV4uzg69e*C4TO5 zbeV7kQiJ@LXcrw}TZc zW9qi4yBHSxFt0(?<}fE3^`rp;oA}UZ!4tASw+k(k29Fnt2F|1J#yCHX?flFi$)b29 zIAI-Q)?N(zY0QoUVq^7unIjx7tJJ0aeHWi;I$E{7J9`83w@o+F;`CAS-RVaM# z9r-xDV0$SV$WG%b^EQivuPwTi85zSZ<}>c3hAJ$oJEMkM+j6wfN9Vc|c!{ETr#db; z0*?AwZr9z55`!GWOa_@;58M~Opy8Ek<`3;RnBJ6l5ABbWN-nZ>_md~Ww;Kx%4|V#m zy);~9x(d(Ov!@GOU=faa17GRWymI1M&S%k0qG3`{U*OCYLZg^EGy=i<0X|)pxxvpn z*DwF(W3TVP_@HVVDkJOGON^r_r1TRSBkPz2&0BSu=?|n#JWd_W?=_ENmR%Yms7!qq z^_-iey=5q^h~)nZmV3B|nw66WeP&wVWfp8#pCROM7j{0nc3cuhi4Uk3W>; zc_P^RhkAxWL~6%6|A=PKDMN1HD_Jqwt&qvwRfQsd#II36wLC43q=|ViQHbYw@Hxdi+UBs?8JIm&H8GG@F;-+zYxRyN6q$%-hUVC zjJ7iC8xOQUNl7~xKN6Ym3&f7dRV8~nkELmXVN#>SbjY;$J%L&9ZkY778}pZJ#cz|2 zGUvNrCChC2=6~Cim)U>;(DFMAsG7U&=@wQ2HqQ^b0FLEjudVci}bE3icW`@(OS9>_lQ$y(W9;nMyq=OFL6%I9a8v|%= z4ObN*7Bkc!o55rm4Sh|;2CKyZ-^6!P?fGcYmIi=4BH(WQOWg68g*4|%qlnVs8rq>f z^V(P0V~yAH>A%?{JXi&M|76A6nM4C-Y6;14ndx+L>?`CsF{uv3EV>7{m7W@CzL+rVp^VsjyzE*{j^G2mkN0Gc}lob!s|YeF^*$hCX;AD^U}AR zgy)7LCR08KwA``ik2l=>YgE~;jjz-pSh}3VV=AhZ&|Lq;(4E9j8je@rPzZ5bkXs%N znfjYJ2R8m>9fhiKKCCunG+@8B_dgd>Xka(zCH&G&S;4W5Ac|LtLHKBtwiegtDh(+T zBt=a}$$Y@IIeCOyJz<#LKx99{DR2u2*S_BF@$fdx%Qf=G7JrD(QO*A6C${G%D%ks2 zt1JAoy<9skDKxCImz%eLetpr)WzMGP`K@{)8R!|4q0BBny@+(i)1Hv&n;F*@?cE3>Am+_=pWq!zKOg;M1P0G)o=o1{Og|-VpFasr zpJv}=b8Hd>DuwXC`@moyB9FUKmSGCtkig!63I>RZ{4R<0Q{az)>n`h?{wLo02XaVD z2kCN!#JNG&AA_g4oslxK5xSl!sum$7@wsEnU)28@#u&CzGK*jSr%Z9~2Fbr$sxJ-Q3Yg3y+Uij>Nfznvixh z%Dw=uKI1!?6b77F-bRZBHG(t61+NhI6`m620`65vyMC)A+z1p?@^z@BpI*u8<<~7yP@h^9{ZWr@T-ua0UyGri@!BW^0>X4aI5HB`+>7~p5 zNK7Ge6=3;(CqQ!f7Tabg3s3aV8{W)lm(vLEC&43G=SdUajK?B)=hRmvU*Bk}C!DiW zsZ0YMX``l7?#uXCY+rjz+f%=&Yj;~PCP_zE)E4m=G>aTXGxO!j9@9X zllieLPLQT~$v0m?*)vCd*&15(l}!CZ)_3+3u&wrv9d7#`Ot%8LKAhkljp(CQ=;VY2 z4wmI8K8tD z5y9jGIn={8k;xQj^v^tk3r_&NTQ+~`F5&X=m;04*;ksYSeX9e8GGZQvb#8h9D*)b7J>FKYSGVEhD=PxDuz`xW^Fmeg`xl@+{qg+Q z5{ja#=jhx9r#$xG-b=C@a_5^#n`ph=w5Mo`6;Laqs+Z}*nx-F-PemFjlMF@19&VzN zrm1(IWs#Xj<{Rq@Or_%!OQLLN?4LFbh7f&T7Ed7P*%TRQ9Fx1sbGh$-A{czydkRy8 zXX5-p@D#?`nN}F?BlP$Z*H&l2W?7cUfNoTu{Lm9}$o%`I5CaDuV8rOF_ zT^2XEPbbCwHI6cuvp@Dt*y;sA6o=DmU;13mEZc;LZMOqCq|kw<^0`jU zyc6#VNZGvog>~YW_sC>Y_T}2Vr(2Sw%nh0GUW6kTc;!4Jd>wdsyuyRVZe!~v9?C#*)4k2(n4kyQ~ieLt6NQ3bphs@dc-2|5Lpa%Kx-EO zCjK+xcvHw7cbyJiNs1X%8Gv_F5deF%y>m}Rlbp}1Yfo2FW zEOew|B6ag+W$uqubV;;*sox;NUzOgpB9&d-XO$VZ0!Adaddb~e*g4v71&>-~Z~vG` z=K3Inv86k9zeO7lh&)XR5I@iAl6VTGB&up>W%rF=GP(D17rQ6u>CJ*}PtEEnUWekP zhV$UEPp|rscyrf7Bkq3x=32 z1YSa3b2ZG7!PC(8WwEK(2a2R^ZROfwtuIV{-a;&q3KAE+7MwKSy9SUMG(}sz>+V_6 z8#_{}0&#NRd+2@Z)p)XhGV(sJ?r92CG@Wk!%^Df*us{FKWpiScwrxs}?2myM9Z%5Z zwdm0%TV_!^^vsor1Wudnz|?q~OLorodo7}q2h6Y#ejBSnsGHjxFPw}ViDeYpYW7n7 zIAjwtk+?RfAE7Qf7b=Nt&zX78FjLb>e_4E)N$VSL$k$t#PC? zE}5Tzuppp;rMWFVO`97-cY5wI>ps%<=p#xwi4?KypwDB>gpBsS zZ@N6K4#<^LMlPokrtjUz483*F@tMP%ZSgF}8Nlniw6ey2RsKrp`pL|~U7~((529Fo zEzAm$OT=!$BTLhoqLq`y?eCY|Bewa|(%319#KGb2NTY(8+iYR>0SaDM*gcIW{m?EX z*C)ERm36b$%e2wYzOhax*l&Hs7ct;%MtTmQhZj72=OE;jpGsb5lt=ueLQViCg*T#V zAI4)hE;cKO*}d-ry>EDXIz~8fIh+fy;T0ep9CY|?hF)`T-xogNF4+lA61TsdX}ZpS zHJU72HTwh|Ip4>R`d^=*Q+J@oJ2?-)vnvxpz<4T7-)pYkCTfC}#M*R%z;t{yWB|m$ z9R*F@{YEsig$mp!b2-kSbgQZq8vp&_H#)%W7r7D2M}gk9Nz<#)FJ$2p5FeW(tK4QLoh8ct8S z#%gPo#MLso-?|H>0`O_^$*|evL=}})szV9&)%hhon{BmQG6GHq;iZAhQgx>L9JuV3 z4A`z3ef@}IKz&aI8@7BSL?;pucXt2Yq8X)bVJF#8gRhcuR>p^kr;Y5_PpFHpA^^UB*7|fpVHuql0A;_umPbuV6HZOV(%hhmpzk~ir6jxXjK%2-3A#S$8t!emk zyO7awuhmBVD3tl@Bq(OSTPeLZu2#6Xv52gsqm$cJaPu9G%@8e6cAWa?s)sH6}HIm0`5mW{Rny zPGK#@7hwyu!u^un0;e~gV}ZJOt@p_bd=z zgsM}S;J7;jbxDsV+VQ1@4tgp}N49LN%#3n1V<=_`Y-Bj%lXx4O#iC$SRch{s&0tsQ zH-dpb2rOP+=touND2-*v%Fqf1c+}HUQ1mi?o7ek^X+r<7qhmAZj_lvgjkZrPhps@WQ(nXsQCgDzKjEs=w3K&qz8Q$Wt zw|gQ~{8mdh&O7hh_~Bd3P!5{;sHSsF-LlPU*UgY|_MEnH%pbb|#_!t=K-Dj761rv9 zXWQvKvCO7CnQ6>Mf{t&ElkETdZJpdwc`AI9^kf-HJA&woRV&fU?n=^Xu&0xCX-9XQC1AwYcJ;c547@F6voihS1tg(Df zCf(77&aD&NtP^jVZE0eNtF<}e=B?A~nwz8}q`mpnaYpd8X&!L64&h0z8Z0A~WzjPH zRe2#yEf~g>axOg888e+!e()+5I)}d`CJ{#fjz1J0yvBXRJ6p{bg_)n-n$-VEd!l^s zd5wSNl-0cpMK2_`$~l}8y^c8UmW7feF5%#3^%Ps=a57`tm2EDgf~?Bq^DLB5rgk;C zqgg3qYy^?ZoI4J)xuRu%e++X|=%!B;7Q9ma#Bp6HQTJm}#8s}qCQCf~&g|nmVB=~C zLw~7!5_0h`c&FUuPsWB3lcM%3ZOTpP1PD%$Zr&k}^H)p$cX{0HS1o-u!`q)88y()pY1E~9pEgF2dM=l9 zHBr`gNE*UQx-MH9+fVlDH3f3C?+Ey``L0I5~MAUC(^ z8{&k19G;M*UAxBS-C$`3L(L z%4M0_@nZ5sZRu#5qR-Tl9g$~w^s7f0Hus<|E{LvihrXn_K0&oJoQD39{qR1e&1&aq zq)77a8A`NCo;TQL5|i?VsjJ~juxS9ssTDta$+E6b>vt;gXc z7S6-18#}ajq!-K8U^T__%gN;B>bN|4P*ZZ@`YazU&Mo&i0eyc zXp@qhPS_Yt1GOP@3n&hvZ?58QIX}ttypw)oj7T{;PGdce-;CPUPE5LX!`|z&Uep~OBK{d1XA^G_CRRq&jLVuvU$g9kGFf-kdgZ+j~)&Q)YO$H|& zc=($?gS4{flO>QjsE~-+LBE^i^KD&C;po+H)!V}3;T|-C|Ll|`j{1JcrA|1g>cxJ2 zC)j9c7%@EBj={tPO4Exg5zfe>6A=mn6#6u-jIIgpE-`2I5LH))_O}38*u;a+Cj`@SJ~d(HX*1?YXtTh!g%B zM@=Q=LX-=+YVjk)Hgu@`1YHVmtCgNLzR5gi%=8Yc&VJ9SW8|=@%i^+nz0~K=>xlSc zaeXDq@4EmqVMZ#kLii1?mVjt@YtFcU`uf2EF0~^)d8{d2(kN-N2XkAJoV1BoS&U-g zGLl7#UrF0SN#X~~Hca+n63MTfX%AWwR=Y^e&bT1 zHpxSz`X*`pY$gv(qdy;OMVuUvgp0PnQV8y8MnIv^Vk4PS>!t=(AuI#hPW?m~vyV9Y z6Lb%H^oldIU1S&BKSzlZs?ULfN1p~#Jay~l-fP`OgMb&SmcPtrAA^PC9df2ygXh%q z%rSd|C$AdOuJ)WddtJ_aE=~f%kEdB0`PV?At;%nfvjmeS5Vn4-G`6h6o3L^ik0jS= zquFcm@h@u#f5_y49epx)bSl@E${PGYX*5dZ*WEU38VPIRuJoT|cv*2M zD_|1K)%7!1` zcep~@PzAC-0hBNsP#lhc%~p*K3=L?`wbzeN-|qVZrX~3F!f^@aZdoDVhlw z_%;LL4Z%AW(u(2>66?SZ1u&ny$J-X0%bNG7l|9)mZMDjGG<|3A!oT2oRlvafcEB)4 zr-~a<4<_c%d%o!jP02d4NR}haxAJ{F_!iO$42dtX=@Ju3@Hrzg-F8Y2*bVK4RD*P` zoYmJFXD=xPVJc<&Oq*LeVa>8cy9qa>#gvT%)XCZaykL)=52}CkWl2;K=ss9$#D+;7 zRO<$n2Kg(ezmABGlcAbf4~T#KUIlm4yyFLA+w~{Bv&T6m!EN-37Z#cZ(J(=ReGpq8_jAcmaO4-<`PY5L8rAq@#lI5XtGIcGKJJY0-0?54*)e6?LFcH(y0zNS z#4KC?INsig<*x)pm-;9!?weUph74wEhhnb$kl7zCeUx(eU@U#GSJm00kL|bH zuHIaIfb$1l3Zv{$?p^fViK)+*BG>QD!3<8 z$LsS)?{^L4o!_?0$7!;BTs7~Xb)(MjOV=tH7muaB@wIogySfxKAoE_lofgcm=Z98< z$1V;L#m6>~MD-DCw+qmJ9CX(Al3J#4a*NK*Uh7bA`jl1NOcX}j;<{7gs8gSY#R zt2?yPu-M_aEVNZwjc6?Vfp}^@5+E1c~DE*cId? zEiI9wTnt5U3IK+9>YRE6GtsE0O|Hq8!>NI7iIX0a<4uwD{L`O=TW>qnJr1@h4u_Syhv)9dy*}ed zOqB(kE04;|sXq}s7$<3<=sus znJoA*01=EQn(KWs!{#yhxbYC&fzvIbHSz0odRB#u54}hJ{{b>V&A!xHf3`*FRz&X6 z?Y=>K<7MLE-OXSooEiwt!8Q6@-($G>ZHAlQqI>i@?dm$AJ3$sRWayE$)qN&nnR4H- z^05K#+8gkJ#YRIYPcH2G0D^oJg>(zjuybnnw{V;S;X)y^1>*}}K^EJ@#k|J$h9 z1zYWRY=q;H+wxSmG*{X*2ImYGu@xB~lMYZ}8(ACCYZC3=BGe>qcs6EQ>>bQu(sbmb z;Mb-gylv@^3o8;lM%SQJak(bZ)xm*mbCLgomRQdB#`J@i4aBUd@OWHE$#HvJVn(sG za1pf3aJ4n2sR^;1aGTI2>@?8LVY?@6FX`_6h}nfdrrEn<`Kkn$38w%`7wzslEI#-h z=9mA7;p$(}F0aG(0@>aoZ7oP`Yx}=AO&Fia0&k&fr5~rQ(r%sDokYAX>n6R{Hr(#W zwg^xC4rzWKIi*Wb9j8XPNb?=WFa1Mg`#fQ})X`+Dw)QpgF*kAVB#i(h_pH_D>P9Qt zA4EIV6bRBn7+}7GoO_b)0{H`Ub z6s0~}XYS2EBj{Hs+Uw$?%HW1D;N|JdV)LNG^Ee9h18mJ{R(EOlE)b9I62>Df=#9Kj zc=`}zMI0Z~J$#G#JK2WO0V{rGHG?I*%+*kTK~o%CU?H zvs=;5$Lmcy4wE+Bc&v7B0q7{ox;IILF%eb}#s-G7$P2##=g-hARt)cdhpoT*?-^eG zGuq2PA?!aW0ZuqI2+Mui$2VvW?hub35}JT4&LB-!9eP!01e_E3z0b3Hr(+$4b1NGa zJCh1Y?GVa^t$HxRHMgqWNE#+oQx&ceP?Y|yV$6~cW6jzJ)j*hUI}I%>B61iuIUwf8 zf-}j;9cfruBjBki?kktzL2YU&MAN3DyW|Efns;%jp>)djLCf3IskelWiLhL$LHX7WkptS}8#K!Ygw=r^J74N#!c&TLLR{|B-+h_w zcm6-jul@<`@rQ)|2swX-w6jB+ZzG|H6k)WTX_Fr;s2Z&pf*xCAG`QJRoX4mgh3~E6 z^dEIGSJreEGGmpHRYRJ6g>ma2AkBO|{ih7gZ~fM9{a2eWpGE}R%&NV0neNgXFf3rP zr90{+?}STD+-tm7LA%VU~{cWEBpAnrd< z!_#(9V;q-qCp@)iZ@ta%&R^2qex3H@92fq`i`#@oo))<_=v!Ij>q74>^=fj`9Re_KA z{X(ZF%u{e}jKSrs(w6+cs+c`L*-)-3gSt5MMM<;gTg$L=Y%hE(bEuMOf|F;hWVVjW zgqiA{h{i2Ih;~-V>O`khQiSD5nmvc~XL2YLo-PDiV%qJ##_Yy7>F@o3_V^-UHtICU zY=LxhU8P}yxwlW<>%|50LO=Q|S7oj=5+Kbbpx#$<9vtLGrvv6XE!;DK)%a-Ai;2n!EGb?k)3MYorIoepNd=tr5 z=eP#rWJNq&s-frEufX%q6V48F_b)Mf{hKVl_ivcJ{71Am-#1%~rS(h`o=#{TH}@{m zzwsxuci%y_wxC}?=yf__9Cc(Ks?l&}n8s+0th}@FI#*|#!+6&^*yYm#Hka!ZT5(;| z4kUY3Y!W;^$&pnCXU2o|S|5w616B9xIR}<*3&sTzu+cn4W1#7+RU+<5;}-F05_j)T zb!AJiM2VkKg0|hf--LKu^h{_P$mt42%ac4;UTRh`nu)4hG>nurOqI}+-Kako9(}q- zFJD~~RG5$!W<6mzp}+Mav&&zn*}qi2H09`NiL1xbrPyw+A~t z^4xRC;ta%@ZlJcZy(^3+2!ZIDI;-Pg?Yfu)xlyyetT)^9wq-K>PI@H ze-4>_;nbcf;y69RMbjevoYZtAL|18yCx|3cEaxLw_o`RbA?He_>ReJnWMwK@t#s8y z+X%@0*mlhXba&9BBP2AW#SZd?7vPJ}5jvr}eUaG@{*d|i|1JHy-=n>INrj9FPaWd^ zJ-TZ@roI0@4M#BRNN3OKz80&c_8h(uR9=~oxo#F#E3&E%0CSd?hd66YOn-t}paE9p;{)F zEh~c^4{bt=3o6kYok|-z9i&=7EgtKoy?m@JG~bl~Bq{-fwU%ymA%3`;dJML=M+mla zulElwq<8@YuQwIMJoBQ?2|={^i`j^bkh&RZwjhLK;_5E(@EY;(HX%*M-A@z3$wRuE zf6MHH-(mj2zo)XFh|xXOL?jHGM!^@D_fILXVPHW4Uf;0S)>MYW#4kBHZN`rU_D3P{w;i8HKqk&!FU>S zpz70^2PRx3L7ExT&!Jfn$NRL8FVXB@f$_+~nDE&_Ok44oX8#J^t?$rZ`BVDqe@nOb zE@7UKGuz14S)^O&o-BEP6(>`piHbD+Ik#OXHbhQNCaA9o7aqvR_$?ky#W#wsR19;Z znVSIr_eGWX&j_bSxCjA>k<|2z-JC?ohmX;A+Tn>3Mv#ck1&3UtxnryfJXf%2-D+Rs zotn)@=c_W(34t&QaXG?j)VR-_g)e=P@ar!ShhzFHuQL1T*O-6rU(XA;4t|mzRaT|y7Nwp7dFy@2tU7!Ci!`&&frh-ivQRH4#=iT0e}o zmw+wXg-ZCddeK~zx~s}ZOtUE|=rX~@g4iB0T>CD=huiqMhVOv*%tRO6t+Epb?qo>=+2Z=;~MrlCl&K@yMrW+*Z%Y|)Y zCZ-W{=&jPVHlL8EGX)_f7*j-IueKJy)VAO2ZT7RkFO&LD8QLjH+cVB~RI2kM(VJpC zxmKKcWN8(ulu^OPHXHA(+tjCQ)mw|6LAMTHB^}KWbobD+XOZX65Qaqa=nCCOuhPHq zS9BMCM0@)paqk{sbv$jn^%)|pj&TW5GJRXWmV*dbFm@KExSL&@K& z7rDHG_9ychpvV^bO{O2GlbX5(rFUwh&NTtr2Dpf7;3bfx zK|+rNJ$B$U;}i)O3K{04voDbP0a+~xX;kBz;B(mPy=d-OqDh~b2{=)#^&o(ClncTIdwOBUGu($ykr{OQp; z6E~MRi9y{}m%cU!*{P2HR9I1gMLXdVu?u}dRpxb;MG$8k{>9YQB4!YpxAFJ<`e4J$ zN^LJRCKqtT4ysCoHo~ld#Yl+vXdb*y^Y9{JJoZQ@d`gHX_vjwI&G5m$WB%HIOZVVs zgc-R>70qALm5{5YYBOV};f0c((~8q4Tx_2sedRwwW@q5&2*#CFzDkIt@~A3iO;KBr z3Ch2Ij5`a*=}G;RP8O_#xBU=Ekq~=iz97tcVw-4puQ0s#9s2iPq`&YI?alXzd$)D_ z@ClzDM2H6u=&t^h_RhP6Ho>fiuGi5;-ig!dI8{>%PESr!e(Oe@#(e%~kr^Y#gcZ(I zEB08vRB`&XPN&tAGwjm;mGAy-EuKw^uTvCI+Arl$8(FK^GIZu?*7kc z9=s3Zah1pkze>dAF74xsbPrymzw-lz+ux6$(Z|sQ zMx!PKxRc8HI$Rs^WP7qutdA&UVM-Epo)Rnti38FvAfDdC%4(cC;Ub;?GOPdOKPPQ} z0UjP8%aPPHYL5Y=l#n!99s1DFMto}>jE%1(+7dI9U@;;zRcSD{x%0s-<(+brO2P;H-QkN=GR!-?c+prX$~D8`NA)Kd2v#jYT`5l@Q?Ev|yq6Ml<5LM$DU zkG3~qBW!?>X}8uySduL~w*{#+1%>}=8Vl8X+_l4!2v1v1K~5`HCNUdXiWH+c9nEPt zSvOM!Z#s`0e^7^}>Co?J1I}^Rc?f!{vXr_mpRG_N5llSprqJg=B;@^D0z#vFBSa)dqzSr8D}t;7 zEF<)1VC#9L9W0p5c6hpQ>Vyl~a?QnAI6To^6xXD}O5IvxjVgTVWV7H6qyfZ0NgzgCaw?tei4(T^G4{x1D{FVcSWGs3}S2==Q+I5{BR zewX&<8#D*EiE^SFp2ZGqBep^f8zWiJn+@ia8-I4|LWX@OY#i&Y-^!9UXL{;hoVF^V zqUh3UJ%^*vs{WXpjbxU5SZJ0;p;Cc(yqPgm#b-i*`C8AjIdNnrUzLUPYAb_Kr*X4w z`Ezc3UIKMO-Jf6f%AU)o_3t&-g(xpK9aw0wxbRo)O<-jblC2zBsisoe86gVI@;2?k zW!k-qG)H$P+lyZb5k%J9=~FnjU$n7#BzH23TPqzS(=g#G(;?|y^s z!Z!)w5waMN*y&QVrPWu~I8@99BcIF+?VX*HsI;eZ_(}?;H*#8fQs}T{lfJZZ%}yit zJ5@L4LPzPW)-N<+cANV_|8DUpkrtJ3?nv{%E9shi%Zs|vIc3qYpN1$U?9ypkTd58} z%UX({?z2U{`|<3W6Ai`Na6K5*c+^eFomWgP`jB^13^sc7k)thv_F!j@Y;PfpZRm6}Jf%h3TE3v^_H4L7G7s!)OLEP6$1IPYejoAJ`4oYu2OllA2}4H=Cv>|X(SP_V{p;VLd*{2v z-5a`^WE$~&au6YmC&a@Cw6`wM-o2~>W#4PPjfL?RHf5XyuUma~3c$LG%&=<5CTwOw zA$KnykK(f;&@7Zx0!_Z`CRK6Nfv=IZ=VtxaY1Bx5{i^)sXX{W4-LJ{x=G-H$0;|*I zuy?tWmi4f5@~a@8NM7wGV@(<}cmZzQR}4Y}ws!A{sgoW&eRT@F3~V>g6bYdv%zI*b zKzsWYn%xU9o=k1|lY%5dI;MI25&e~KFkJszx<_viSGNf>2(uoUE%a!H*dn2^X)hOa zt=2*&J`FZ_JJY%iE{Lv24r{%G8zd`Ts9z0Jg@@9Pm88nx;z?@oMFNn97xYY#c5Bno zsl=%hE@(Ss*g~3~Br04mF3T3lMlcf4n%0}rFZw(0E2QetYy`R1@c>RP!FwGi7SV5O zS7kX&($P&^u81c`y8lMMg`9r@`Qn#|aYc9geP%!WeP-YPJ=$9rb;GTxL;3`f2&+Tl z;V$j&Etgr-p=&XjD_U`_){5K^tUK$()(z18s={TMUKLalW+V$7!!HcGcu^>j9} z_6>Qc_E#y>CoX#A59RXJ6doT&<00g{;DUuD&6P)MS`~LYl7A8^dx zhBoe9?*rO*gj~k@-Rm++BCJHurI^nN=`roCpAa8hAdH80sM&;H7J-p49@6f<#p0dc zX87pOiQ|33qJ!t2Lw3$UKZn?BKbwq31%1wRXmmtEqS%hJ72Oy$6ahnNTs0ZC(kibe zvYj_=aH7r5sM>ji)3t@Cq3E-=SJ!k0((nb+_CG+{NptbpAOw|6+YV_vt@x##0qubMd7@q*b@jl(fA2PiAO`6pM!qxz7uWHde7wgsR zOxvo=dIBXS?`$^e)t~b_CnbMjfra9nPzf3M^oa{4^+?G41*0<$S3F!JH}~()Rk%4V z9=H2*wz~GMB7LkQ&eIO=w=N?uq&2yuAQ!B)7dt_+xV34Rx;^HwjTzL56Hy^1q04%6 zvdmvjU-6=!t2~R|t(CJg3?Gf=q>D{i*-OjsI@|H!A`)lNw8U;ncX*lM+P7#PUR1vm z{$2>_gy!%X-Q8CiF8wk6wZEoGSBdiz!p;m9Go)*^PqoeARHoddkD4^fv%686uj#LD z(%!b*Xxcsaw(-VXL}^XTvyL~sHEBc<(~el%2;)dtnaxGBL+a0;`ZGlwr%$->T5DQU zZ3|(wRKkds9qVkgTFbctfLVSgkkO>iP1MvTI-#CBm|%ocMmb7{MwCfAAH)P5lmNYx z)vd#i)nYmJaP|dw;mgGB8U6k><}d#tiy!YxiJ;tXgU9(v84F)GfbryEj_0 zcAs~FM#J>ednBmaV9QWBiAdZ+`m?%2=QDs)C|oF{ZAtx1iRthV#!(H=^1(5_%&Zuw zX&+I#O(hU}_HW*6y9a+?dc}N68CcrO`n&qo(QkGf) z@wU0~T`)n)9&?*5_2%Avxo&yy<*N?L=4hplDBstUR`xI$^;q`VHi2WB#}{dit`S#{ z2x;0_>lZ;7kLYgxi1~Ye!2IH$(%*TBI6H##JA|zrT~Q(E$bTGlV32p$G)QHviPyE! zO&0i_X5Ckz0jCX>Cu`!gW!=d|3YWc26PoEwpxzA5m%EwU466P5rMCTk zdT?rUA#Fz*=159}!vkg1!7bZu$Ycb7B%A1}ga?1LPHjy9a6-zRkH0USRqltq!vd3# z>kdsv!b+3HN}OwN{_4M{`{<{HlOu4W)d~M$ zkVNzN7VU#eG|PvCHjoxur1`e4e6V(ot5Cfnt4?I?)Wh7<6xzrgj!^2>X(%(Cit(~R zPwpqLa44M>HkzhpggM-hX~Ai)rZ0~u|5b8~CfW0-mm9U^>}jOt!vq->82v=p zQczlQRHIebidNySg{0G-ga(E!0w=`7E5yU=#N)e!aoRBNKMVqCNjTo6zwsjT3xB}u z@}JY+|0!`x;Q8~&{46v>UXd48wi9OEx39HLa@#00VsUML$7#9Jh~;pU&OkMj+OCbR zT=2G4i)0?*e*7}kTL>n=jz&)ngdXB>>Q6&;oL=E#=RD~v{|Fft$cY}kUK`bAL_cO( zimgS4Rd%qgn2i8(pTxRAVQ*|HlXYJT@V!l2J1@4L#hw3O6GZCIi4cSkZ7XmDuz_u( z(-1C!@WB@vbO_}0 zIyCO;&uP>JEB9X)iY07qlxCVh6$U)s;;H0DX;+^t@IW4UdNztM?yzvJY;tgQ#$2$- zk3P5v>tzGwIltC&(3Eb(vF6+E>Td!+mz7SU8oXy3VDW5s-C8wR0t=b#<8< z4tm-&phzOHBFGX+OHx0O&VLcM&l1~);e#Kt^^O0Q;hk^M>|P}v?|TFjHqhLCpZ>z% z&_2FK7+PdLLx#DkzLVCMgu+P5E}B@yRlQ13Ixxr&Y8KPRkx=QIJ%l@+w9bRiN5w&^te~cUWrzIS=m3-j`PvuHR{X#5WV8 z8qB*ZZxc@T-pM+Dwe%?8&l$C)dk* zU;AhDkAF&hu0vjUj&$yeI?a7}NH{qrtXA26NvWX-&vl=w8ifsc+uA|>SSs47*tK^~ zX}R%aUt$8ZYv&MIqa&fvR@SEHo$HDlNeNl5NOX+tHWHoq1eb8?aCIE&o>6&w~@B{dy;pJ09)1)@jni$HTAvI~k7zRv;@?ug$lS z#R6sn?fuKl-u@=T2S1>@`ZJn)mx=rL39FNwtj|3}KoafU59lv_pZ4%JVLm`V*s|rI z!bN3twMGrO-tDb*V)?eBi{j5mx#gRNo4dXZxNBGWQ+YHPeJD+BeD-Ibx&@=V@~w1; z6)D=Q0F}K%9iV&8^$sMD5`fw{^H{wlyA>)vr~cr_kzDkk}&qg3vZJQI}J;yKfSY@0Wl-=Lq8= z@$fdy!}sa#yi9-V+YC4UigvsTX9i?@n>5=-1j5M@av%TkU3{*9O~E49Wi|N2+^!Lj zx0{+WWRp_zvre&8B#^_kUwf&KWq6R~tT}37s6E=fr z9lC~0X(o3B742zQ8h;@XZJTZvRr&!HYBd~hS7LOijv93yg|Iw;lLMCRZ?M|>C#2{9 zGt$W^uF61l*J$ruq&c{)o%(E{mj2^tWm{}`wVsSwz>~yLTYMYiD)nq`ouSorF803io4q96 z4&GOSI1LmgTbXUtR|$AcOj%2ZxplR%zApj$$lb#TmG@25?AznZeyIFe*!uW$0`u^4 zTJ+wMqG`6a2PPm@nh<9m899s+e|hiDeczdlFvJ{qGdTp=EB{3xv>`E|X!N0O`g52L0lzMdfReCm>HQ^$MP&Z_CVDH^Q_L8sCR;({E z+VFN5{GS^f2OyZXeUCXv2zP<7 z65{bn-xCP^jL>&9cdyXD`y+-o|C;`T9}o}jKiLU?&d^?ellc$-CEeY(boaiw9VjJ2 zTrOd>I-o8p?P(unBga0W}YPdp5J-ek{Q9dy^3gJ#g38>p0v7ZWYneVK273rpyj0YSGpfg zz4wQfiRM$=dRY}9LZJ<}owC6|vr5EKmzjrjOp^`?aU}E|p@BvY=pVkNdo~>1DTz6? zs0#Ey2%;yNKDxy0!XGfZ_*MGbKc!hcK+bK$Vh7@aAT3d}XO6A~GvoI#rb<9J?Uox? z8UgFk=00evXin6RxVFm$1Ml9w0odkP`K+k0M#vQnuWzTX|FCwf4JwEq3>dXtMKvTB zL|42V3(~(pI{S~2erKb+PB%`ia3M{HbTd8K(w6Y7jo6G;SXZ&p4yxsb{#=dxz<%?y zyR(k2{_gh<@1Hi>orkcAYAmQ7SvC?<1Er9XYB5I9j=UXUm=lB096q4G{uaZ97a89E z4&8^Z5f66t2=UDXJj+Nc!t#*j!4>)se@t_Dm#`T0$YmPqnCcB~Om+G(^`vmxC^V64 z$(Y^GN1>_QgNgcE(>OS@tA5wRwQx4yduO)+b@t?Y7aX3%=1bQ;R9cwak*>R}C{{mJ z(bi+bzY~?fz7|1d3Ln>Iia&BQ%}kVF^{X!ftu-Too{jlZS8`y;x8_i4f& zp$E3Mpq~M)3X7wbV>B8LqO0n>{c5>+{pxe37q4E-Syf*(K9;`f8nI=|CA{iuuzz(t zxP-2LJ&gR5FR?R41UV6;Jx5yn`ZIH2nd8(77lZ(@(Syv|j(`x;XmxFB=ESari`#^1-g!0e3P!4;4M7cCA6j~_eLHGp=qr;R84NR$AD!-N3kkg z$ovd)?s>xY7R}yGhIhZu*0=rz^H=_u=D~Hs>S(=#d?r!KI;@U~hYx5D?$JEHt46Vl zna#X>$V>zOPRzfBsK>psevH#PK0Q&GZj63MDsbPMr%TE_FPS~j0ME}8&W35z;{YJZFz zmjx2C!Lz5Kq&ufQVEHsZ!H-S1_UFY<5!$>0JS+`8*d%$SLCJa5a!?x$qXo++rXj+F ztYA@CF}oAHG!AX+<|{x5L2Y|hD@cJvhYT~qyrX@5iSFjB#Dm)e-6GZ^K8+}}^mif1 zig@yX_QC7S-~U(4FZ~|v(M7^=f}GoeGuwn=u17jZ(M-7UwU&_|gI<;b1+!PGD#R$< zSN7zeVkhT+RRgM9#ajEwH0Vvx+b(*__1da0ZNDH8eXk_*=(cnLVpO{vNXRN7CxH~t zAhRz*GtY593pl01g=nRQNa|;#`Ic?~EuAtKh=mtBZ?cP_FWnCg`wd3FG>4de)U9ZbP z5nOXGW=^!qN~c$O@|v`6Ztau4%hM}>cX95}!mUYS%|R7a{*-V0y=wpzrF`<6wIA^B zUgjG%BAL0nKMTwqZ3<}q!kd#+QLeeuUxA`otTO^RJy3)-ed}p(H#Ia2{qO#BC}kCZ zxh^i&tI`u6?B3}iLu`xaB+&NAY))ubG~+G$J1@~+{{ivv8D2diD?N1V{!ex9iW}dg z+k2BH-60GD^B(2{w5^^4l0@z2TvL(5F_OUq3cIRLr9D*0RsV67w^mQ~Z8Ki~SQA5z zGskRNEq72yxY1<<_h-|LNni}R?RT?s8~(Mvt0mVJu-%l(jVl2b{IMjLKp zfsJmQXNPP*;OF9a$5p8kbhowYQqP{6k{8z?SX(g7&8DB=d_I{b&OR$CnuIR8ZMP=6 zjMls;ML_cQ`Q9A-Bc>rR2x|DK#j*BYe>IPm60I+>DM2e!P|vxQTSiK7wf%&6iY)Bf zU4d?hM9yE{d&C?EyzKOyDsswvzxEa$kKKnz6o|_eA$G`o3)vnB-D8Fu-(+_2k7@R= zmqa{c2x&?C=zV54|Axf}zt8;2*J#H(gvEgDoI$p>k-i54VL8Im_bc*p*SaqCY(j-; z(YzfAN~3;;6jhrduki4&Dp-9gtgXD>#L@DJlsGfwX;&bpA_7Xb8tgI!dUAFnJ84zxrUd44JtYq2&MN zP6^HKGl5m3U-#>a&&N65Qq@TkuBhDM$ zHvHZ1(*N`?8D9P>&9!&31^crE-HG!a&EuQ2k8cpTupG))5uKw|J?dahLYJ>iqmOp%S9< zOQ=MTb+};dk1qI{V3Z5aVy$S@<5efM5TvQltXE}W-|!Yt<;$Jr=yC~c-fxhyXqamy zP`Zg+7Ah2C%p^O_?J<$%F3ppe+bYdeD); z2&;W#P|pBlB#ei2cV1z3@%I_7{w3YLmubdZFaz1zCN0iDJLt5ruk_2yugSu+7jYI8 zyxx6w1Q#}Hs&;`~?}L~ptE=2D+{H$}?fr$iQbNen8&&%;N~#|UO?Xps!QC@q2FdDt zrKB{rcCJXZ&h;6=DHJZS+SE(7&y$|}3d9zU)z-id8L9~>51zz@1XY)3a;f@Dteesf zH&b1i1I)o@any%;+M$xCdTqp`0c&R~8$F*>w@TvKodv%ZkM>ZSj@44H1kgdFC#&+s zFVdvP4DWoK*-QV9;amTb_QRj*o*8R%FQ*@2c}TN&o95sy&1w&tz_@sh)b^^yO0__h zy9=x9N&vMw4YhC~sI3d=s5lrscqkP;WqR1)SsJL-wFxpou=Pn=mtt;|d@Qiw=bk7f zsDNoSxEY~cuI(yrHQoA`2?>lQRmk;>YG)pln`VZ%rhRh~)O|KJ3==?dco>t&<>_gx zY1xp&R=3U&v=6Txm-K;`NeKe6RRmc>sZ9DVN9B2|>Ohm=8bu2dGma4* zz7{4_{AtwQt)@~QNwqJjo9Xn391&0M(H!3+E+46y{24%yC1E_Ezxizz@BH`7KKx_) z`>zt4edO#J#@blH}pi^XgQZsFP)RV zGujANU!uQjHRoYEXQrw?f^8M9otnz9Il#=^+hiM>=EriNqrc7Xz6=rV(d#*Rl?OF_ zf*AmMs&cYDbnh!RO33|MN8N7=?lHJx^kwI;WjndgEL7z^Fmjx znDzm3hZHCRQC`PyY0FgLf=kwNZ05;e=`3Qb!cx9YQ{wN?4mdOP`rF2NEXr~7zA;)v z#wetuMLTr&>-ntGBv!um#r=D^>a%JdscmR198YJFD{Ft6N6#77hP52M?!67W|H{rv z?65&C?!t&HK8;h;q^T;5EF>YW^muJ)T4ZZRjQb29eT(7p-x3e*ozC_sBVjxy9^IvV zbb;BGzhd#`Kc~O<3b8$etr>FWJmYMeF?6sT2`49n(GDLo!9v?wC0y8fKVhS6m4e&= zKb6%bV1k3T|3c4RNqV2@GryG?0f z3ulSvTZXHzu=w7;V*cvCr+fc<#J$tGkxw|;r@i+9?e0fJIe;#b7F$T$<|EY|SzCnB ziwO)OR=jw-cREnjzSX{!cU31&5cWBDARA%mw`#?a+ffLlyyVrV$$T_q0b8|eC*}jR zikW-ZfJAkW4H!KPjkFM-n9-#hX66M-z9h5m96di})r79Ht1?_9U(ZzTvNgRHr{>ba z#`0Tjks8V=l9j9KDpL&V-X1NVnpSHIp(#e!Rked>uLxyYE`^n3SQJ*e>zOfc?k?AD zd6mmky@`cnc@PMrjoABvw3xw=i1LtT{}S==I;7=#pieoP$5$9W`U~do|334#e}``G zZ8*0;o;$~Q{&~i3U>rwSt%&2O;+7qDr?4q%GosGol@+cR@tWZ1y{LGNI*sJYGg8&^ zC%A!hnYzdo=(n)e)YSQ_XXop%g)&(vI1Rhtj8MXO^qk>(_trFzXSWf3|Szw7IvOK6Mb# zFg#vQN9p+r)79Y0^nnFk@|eq|X7r__c7LHxhM|`83OxS$V-{03zEyFqhrD(Pm`#me z9?E)Na}XQFy@s_H7JpTi#duIZtMPS-2R!4ZiL|Au(snTPFhF3J=FvMedmj?g={Sfm zjK{>oyL9*8Vs`Z#3|Ib&;o3K8j<3MkEz+4Yq^&cgwnLKWR@dWL)q@sOX?spB^`&K9 zDy+O(E8l$Q{`6VvsMLqnkA|CVd^YPhSNOU=y*!?c1O*EyRAB^+_Po!~a3W?iw@gTP zmhtRwBEz$JHq_}9F0w`-==$+~!5BM6(P@Gpqtb*mY6!NCan%8e6JfOXx&+Dzq3R>D zVI59-Rli)wQSY42bf8t4RpNsirdq5M`7}bM{X4P~dRKM$H4oHsFQeM5BCUit?GrYHgWRb&NtAjDVz=hB(5AbqzC||-wf7>vUr-Tr z5-^&9VkOKJ&4da;VgVOsUYKS{pV5l@^Q?<@aBhGF5;NM z_MI>Wg2h|XTrKI9V05hSb8bvKlQ2U*v8AZN=dY_KW96v@S~bjkiK_6uv58vlm*kef zG_@taW$LPGt1c|K+j<$I8|`@rd1c1d44$N2ntmRn~?(h?3w;u4w^b$NA&i0Dxbg4T&p*L#k^%F}DW z+JW1*n41)Q8m{(lv}{yFrH_^X!Hs;KUW57xXvL~`0&} zLX_t0gD8(;Ig)12vwHqNCC#6!!gzLYI)#f0(zHm|lVVGfpvyGVN-NWd$bJkpF&OH~ z&+k6Y-N!tO`QQAId!g*8#4JS_q3_liSb;W*Cy3a?&G8liL!m7qj7g_QBtkQT`8F&T zG~)r?{SO%~zR2*-x9C26jpp7J!pY%NJ?|SKMEQv500;YNLI`ZxEvejU!koGjL0n=aW#LQgoT1tloq)^V-H zYteXEbu!jEJ#*=TMUGeRwY;7v&73!9@a`oGI;H{gvK9ZA3%dvbnv6ohexrhn`4LZn zehgH3!|L9J`pqJAVLrD@i{#_V*@X&=TLm5emIE}w!38KQ4WlnhT?yaciPmo(#V-b8 zb4>T(ExLPe((GR)EFXSMnm%iY3TG#ei4QN+-hP$g>Nn``{fOq|CZS&<=e9|U1*x6s z^2((U$3RGCxSY$inx?R9mfY%{3e!ebYyGQJo&JBKltllPHm;EEakbR!0H|C zK-SY`VY!p_ER^^v8dGD_byr~oRwL4#V?6gCA;UTQ_H5zQ3m4k58zimd?c2MV}opsNK`U4!>(kb5;4N9xkjd2XJ{K8Td@0@*=6N{ ze#lnuWeAwl;z2txYe#1Xq@i<{5+cN?>0GWfuC{}nb8!AVaRJ?~K^Zt||9PH9w_#W-WZxfgI2pxpj=#)Xyx{JX^%wE@C$W;ACU1n(A1%i&OLa6){ zT9BY477r+g>OtGDWIsgMAsg&*(PiHPfzGt}42* z(SIoi^Xp6KoIdN~GKL<49U>L1$4%O10;XZhOS>s)5Zz8ZKPH<_s9$PemKjT@YvZbR zYYk7|*>>)(&Cs-@TrTV7SxpytIR$|*mhHE#eU>)rS1CF|AVj^uwLBZ{Grf6U%(r-% z_!8eS@54gV5xSn(MB3w<^tZl4yZbhzmB;*aKoW60pm}(K?(N^9yYPp^)m7MONMCs# zIeSKJ8%80VEY*P3&wK*Y=GfNP`H-P`Z8$O*r_JZ%Uu1q(5u3q+Y`A&uwJj3 zE_8Qp%v8x(;F=U+0c(8Pw^v()S5>NRt$M3>A-K(r=19Jt4H+Le#UU&MfwXb(p~u( z&4Vk%!-t!(eufYoH61;qyY@QW%{PhR00!?Eg67!-j51OvWtls#T&KC&+cZU8hjk59 z_2Jc@naLB5)lE$|^>4mPnASB~*hV*bF9%DPIdFGSXgepx?=3nPcGh4H>+E{B`ve{5 zESewd*wgW0J;$f-AVC}x&6sqlX`$#$H+q$xF_+E;`K_1QCOvtbZqkoA zsy$cLm!pvC!v=Kxp!K)rCy)i)C+j%-E@`dP5YT=%1SIM?Q8I#r8L2;~oBln6cm{+E zAV$)ev!rv+lR}4_h}LM#J6S=Iaf=W^M5IxTN3hivrMm~A8pRqp)fT`(!+@reoK-|s znlJN-g3dSUXv@Q{hNLDafHBJ4aC}T^gzQ2^RB71r=Z2-)VAZHqck}c)bd&tY(QFeU zgc+e72z{cv|1MiE{!c7^^g9gif0yR|M<3I0KO=|`#wE?s9{uiB`u!V(S%SHCXnBQD zQkx66Nl`}SBWo2tyk1J%uX+I=z1sV{A|q64R!KH;tvWfU5G!V_?<~3$y9bZMZDw*x z8l#V(M~H`JU3F|xYMx5GI=~VWG<2RgUu&E4_^$`(uPue9Aq$xfYj$46sb18NfQXQ6 z%jMd=xy+iLkThO3TrQ*0;>p{lw++vq2{m}6)?9?FvC-yJKDhUU0J%U$zv!wT5fdT+ zvymyIO0P!Md{tFn3G3u?6H)DtS~Zys0Wp(=j*!J4N}Kk}1DB}N24jR1(R$yW5t{@0 z`)||kU9lBUrBpvFgtVmFeTUiAud{gnU$S-e_n9@<=*~8V8>&-(4CN0evU4AlW~R&iN43Bemfk*agKn;(1Do>VtC6VpgI z-PBkYEi?@6^DAw2-7dU>eXJ9;kJb>ZO~(Mu3SmWB35kx>E+9-xQJ-Ek4RZE*((_-2 z*y)}RNeRS9fu*akj^CMjrUvU|);db-*Q_IZ681g^u0FGWU&iF_>|Wc3tB8$0O9G2? z(J=g~Sz?BD;N*}!%~eO2-y2g~iSBY2TIhPhVn&Qh+TAO3*M7!u;rsL#zE6Mg2Q&|^ zR=w_LgRnZLz4f^ zsIfYd{LiB`rdoXDOY7g`Sf`bm7;+Sn6JHpzzhArkn1p(K6>_?Qw}bL6$DSkqIl*er zn}w=+32;E^F?Yn?COu5AlPcoEa9r5W-S-o}8CG_65f-;41FkJ}0j17RVJaUF$@R5f zPId8od;xj5p>(?fj6tV$X9KiCT7yG7mpautS4ON=|-DQoW_tHYsBrIGNJgFU>)PeXx5yoQ|}s`%XtH^ zdF#>A~!vXyxsZ zQ0hMm7vA6Jc-(t1Z9=8l4mIJbmRB_#r6rNmXqv%L`W6u}1!ZYV$`YI|yzhv)yr6?P z*d9gC9!{5V@pB-tC7u5==?lM!v;$$eRQ11Llw(AM5r{FG+yK^Kf(GlIPW{<0?`{e_ z)D3CY8HUvTdFcd;_suuC2hF{8z#D+M^IqJOV)3kh|2eR95ISh*$b1Kefe;hT!5zAr zZ!x_4E#|L&mF~tngyrF@xe^rgx&G#1 zmX|(iFGc1w=1{jDw=(u3WcWc-*=cqE1e-PQrO1u;*W#`jMajHZO=j)>>|uErRe9?t zp8~1MX)S-o)XGyyUT&|2W;DI#-@_{bgKvc9G+_QW$sqgBzhb4)K-0r)P9qQLc3-1C zxI#$FPw!AO842l#?(XZ%FZ>b1&F|1Xew#+_=@IF}4C%L!*z0*1>ZvLZN|}n@XE$Ip z{A91G+)F>w5{XTX%cgge=OvR#_~hZaM$X>A1uCHw_($7?OY!`4?b<`w63zS z4IFYpoSC$?fuHS6IyU9NvXba$3a3lBs3g)gG%fPnmq}mzOOiz3BZSw-X$ zv4q@-={xU@MMKOChmHJJ<(OPG+rexL*;d2;Xoe8_hpbWw_b-5E2$>m?Bu(Px!C7H1t}Zl}r1)ADNVQtQyw5tRlgmxscu!{haIhA~1Mkogud z9MK_=+L(M{35>^Kc*T2j5kN<0i8-GJH-XhFE&YnZ&XLW^xsI8N(`dK$t z321q*GuTpI_E6pz6^>PrmyQb}CU{i!B$>`l+vWRaWJ0ofT_e9-@b**Jf>(l7boL*- z0*f!vd?#y@-aeh4l;4!NogPJ(wgF3}kJKWrO@2mkI&rf*h1!KbuM1SG#4Wh zD~3%)Z2oLC1yT&aGMuPN=U^^#XJxFXw68V)`dkY$-VDfwq26IT9eWp^11P^GIr%nc z$Y10JwP9=FMs2BfY!ExiZ`i0&)nyg51BOWLuJ$9sjz7n4ca{bVn(Iz z-bbFMmC1CZnaH&7WwJ)MnyAW{ve2G0jGQ;`j5Bg8$>HblJZ=}}syfj*{;KTJ55Cct zZViqK`py^44c7McyS;Rw1kFeOo-^cSXl0wrtIAFeOQ$3ADwv!|O|$N8Vgg3n61qgU z_a3v$U!!^Wfrs`hL0CSfef%NA_3yHH>tE8}{XVhVC2T=DyMy!#LZSeerL#yZfSdx$h7!Rk=MyZiX(8C5B4x?8M-h7&{ z;m_sC276Jr;P2JscO$S*7IFDd4;}mH>umqzpE2Bfk#Hs<=eLmOo+tG?FzVS& zvRs*+nC97O%QZdDtc8RyS}kkdMUn{@>LQ~QYE|B~D?8R0BREROoe5X7TR0yFud_~7BBxUvp2p*vwMv&s;cjkMBKked-np(!EK@(>T=^| z(2=!mK%`mqI;uy*>t*OnZw;X^6z_{9Gk&EBRlnN&u3wIdIphw?s=zxRui!O?m`6f| zZZgx%ol+&mSlBtAeoCi1$sMDmJky`D`J5`Pk8<{7uMv=i^k*hr1|pjHvDFfrHDil5`p49=WE7Uv)gaI9OEyMerxZz)DEqg)GO8x-0; zL-k6#N*rG=Z!eut^`)DaMVi}ju1cl1tj(y4+8v5jTo4m7bIJ>yKyEiytLDIHAcq;u zATyK!j^{;0MI0aKxDXydnxOQ3e56xL&;1ivJYSOe4B{CPE|f4OHl(&A#ReIDYQ%}d zi7b0Ca<2pfBf2ag7;R<3s_C4t))0Ion;lr3N_^(uZz@79|34ny05omx(ZUv=ul97; zX|;}hP0O(}#lc$(&XVQ1jv{JLi&>KMGS8yU*%8cbaUeY#NbvAT7=y+h<@lBP{pnuDr?O zyT8l)NB@rY=KI8h-A_!wXs^A)?6t4cKE9>P-|6KeicVi zdx{N)?qLK!cuFcRR$wJ;f`N@rGecEITB@}wchN1YmD%Yxt(pxQ3Eo+G{;CeoQ|4Lq z!Cnrbp3_%HZb#uvHi{5)0_#9ZSDw>hmz88mmtg-!ByV06%f2HPxBBtOG>0CJzgCTr zcG^`GIg{GN%&*m2Y^ zX|-C(RYf6qKB_c`ehg{UG&T!lwm`P$bi1!HfB*MsA6{_Re@|%t)EwMoxb!t<7ypFz z-rGcZOgO)doI8We=BoW&)zheYc~=)jjoP!u&+{9wEz+YlQKw7MzD>zN%fs7?7N6IP z7f@B$b@>V{;uFh>^KFq;$8iuS=3hPS`P?9IQSzw%SsdzXp(_X*3RI+kAuVRb?{+M~Vw zzO7K%MYgt)rZGb>-Ko#{)@C+K*4OLBpVmHY7LoQH8EfoEFh*TDu=inuVU$4ZCaA;g zwTc(86MO6TmLiK&^gyK2Ss;7ZxbxRDFG-JWDFd{YJ`)A1j~W?>4em+*cosnbm2? zRk7yI1iqYCvGTxn)Qu2&80N^UY0Xr9#Ev z*O1HKZk{M?i!GPE3k?2Tl{Zx3ls2^<e8 zXAjSma6#8IKK~Wc3%`cM4p!yB8E4u)0?H%Vd<1V{@}B!*NM(XSh>Tu&OY}?-f?=v-t1e%nOeo%JdqN>=gsq6xJ7LZ$N^LRFvq{)Ki<~=8dVZU*y3Ooof6na3f5Pzgw`gyFQ2hUbhJLn^;o&MF$Lq5XJ?)^T1lw;Rjc#uj9W~6ECpeP49_F&BB$_K#4{ya zNH>sP_%#(Sn%*q1y{9wka2l#e&wOt@E9tAN(oN(}*9Cz>x7mgJ$T7G;Y=mDLsd>y{ z*f)n0=$ae9e=@z=*z9{5^695KUh}JI6zy1RslQI17!w;4VKr(4iaqoTWU)>9|Fie! z-?k;kc_8-X-egAvP2YAqu z+)|tB)l_%ea;w#rEXk56QXoYVV3Qz75QGSTMX)dy3N_c8?!D)ny)*nnd|zbja~~** zc!esy_wv1c&)zviMn*b_IJ?Te6cmuzfae{ z{4^H7`%CDrKMgDkFrWJh`U1APDvwem*iu9+o0nmlw;OQsvJ@?&Jl`UVakuXFiI> zmwyh6XMYKOeHPd=*qIe$#RrprZF&T*2Am61~t`(J`+K#cwSo%(`pq=y6sMKiF z-u+h{!wkWbrh1#?BO|VTH{|`rH9X&qX%eD2$KV3@QU_oFP*#4; zdVhD`hAMY=7#Cu?*#dU)Vbn{H`mxsI=$GnL^P5w-&)q^9=<0PciF8SZOW4ga_1>5( zPWE!qb`Ahs$OX61t>ZDV0h7O}F)yX_o>~@SG`;4hKgxwRZsn$TQv~WAv@#UQfiA1c z0?DXa-Cc?-dX|fEi*fE*BQK>xUF>5#Jj8h6EHK`{{Hb5V@;Cl}*#Cw93bQZ#8p`nR zw$QVG{tH-q@1SRqVpcX$ogn=qNrXDHEa$iRlf0$ z8GFZCQ;n;|GQrm2E8iGl%aDZ$T*?y3+AbwpL$e+QP?D7hf>x6_}nz3Fa@J z%)MgrgvpRe4QA@;c@&yF#bGNST@xNkH^Fq0@gk@s1I}<_FyXvYfIvaOp|2}5x z&jIIV7%!f~c;>9%Z?Tn8A-$G(Clitc_ML5F5o>3xkTxcU{fXLR z-lkyE#cA7&La#URTcV$6A3z*XlXc0kua|Q@*|pKLkOd!+=)}WJ<5iaQc`3d-k?X)B zs&R*n`I@y-*T6Wyh61xC(4T>I3qiRn-Q8ha$jxT3GZ$fJE&|;wZWeUj=FlCSIg*ZO zQj@=eF_Q~F#mzv((6>pLy(ZR6&R5LM&-hI+Pl0BhdY>Sj7ckx~t@17jj`BG@W)o=d zG;(f?_yuSk2K4KfF@NE+SbY9hu>75mVDaQfFnjj1=#H+rq470b*&d<0@f`Y>zl7QI zPoZ1i0%m)D9d)g~hzxG@xNde_o3a2HV+wdu?%yLk;-yAcg_N=-eM`jG_(MvbJu+TN zc};jE%B8prOKDs0kMSmalQI|RJY8p=r~4~Gu6vKv^3QoUe7%8GBb{8}6CdqWPZ&O@ z%dYedZi+{`2U|x&EP6zui8IhJP`%N$66aDlOgFluBW{;Rrq|R@O=GJcogC@q4ju*R z;4cA1@q*U8(Kv23?q|SahS|w8n7{IGFuVB$bn6#U>erU1Zv6u0uY3xN=Rbz!S3Zoz z^B=|R#;4KGZlD~_QC16--cQ=ZSh;XJ8FW0q1d!j(1!U?l2=`Q;W`s5h$!kKv%nuQe zIDxOu9sbdBFaLFWI9?Ad7k^tds~jyC_a-0{&M62DWpyeYwwGJA7naH09ma($#?qs%_EDGntmF#J3d*c0iC9+vDidAhoA+3YnaFsdd<=12 zvR^Em6%wN=9R){nXSMauA`dni9>p32r3vLay}T?*-HxO3Eloz;z|i%-Y~=Wjw1S&M z5-toznsyz~7r*Z+kxf0VGF0>@8_bS3n5{>2^99Pq^XT^Hn2k5F_vxR*nSb#&u==eJ zp?~QMDC?U9l9UQvck3n0pZO&E8&9LmDoQ^?>6hqghqA3G73g@FmF9L`F&1EKhg^k% zuS8adUFAh|(MXB%oU4y@461|lO|+wu*~qoIRggzy1SFNnx+ogqsN@GuZ%pFS04n4I zjX;DSSih=|m?BZW;$cP8$Wv=LB5~qDfQH)0btNXYTKyY}HFHujRh@td`@KMuI zy!^q=?D48zCiNy-i|(Rm!IY&RB+iZQE(|m<8@6eYM%x--SvumG4*-D;H zyZN=xVDF3n2zy`nCs=*?Utu;rjqcnW<;)7*-V%K^bek=@VL%y2H)g`H7~2D0oo)kw zf%lK_^ka^cYUfpzg(`ze{6N=eM7{;<(_fsS0XH$I#hyx^lIFAA3F%^Qw7OEcz=Afz1D65bx6hBYKP*DbhjU9%vMAcE?QTDsj z-5th-T<1b)^ObM;8=Zk&Su|_X{lw{14iomFe>`$jC~9o7U`!aL`8P}1U7oIJLx#JK zSV}G;&S`w6juBmc;+Z7R;XBFOr<8mSp|GWL7Bh6CE5)t?rS!mJiLzLrEavF9*D-tf zDJ;J5t5|*dXR-L5k6`}gPog`zb}H}gm9Jv)DfBrYotdmQViz7GM2k%x^yF7muwB zcDRqST%nXX%2?11Zalk=nJ^%NlA3x5gF$${`-OvhVHOj&A1tB=0H`()yQ5eBePrkN{RZ5TN z3L&g~>-<{yehJ$@2RnBT<@^B_U;QNZKKl2u|Iz;*%TN9kx@%wEDKXH$_%!C9{CV_W zeG0Z%z-9|rnR&b_oQW?;6S`JosvF`Lr$;(1H44y1Ba%@laH2CCp7@69IxE`N(1wu_ zXsJFDy`v6V&&(^Q%~^Y=$XbJJ#>2Yu!C_t}#hmsNN){wORvqbj={Bn2I3aU@!+rrLLx9EnOSUmet9Ded|VfEBM#q5R8px_2@VLwjYw0;HD9vEF#i}=Wh zP1@x!F`|nP}oJdv@KL#@yQaTA)X1p9nkNl+2Llb8ny-l7TUi?qW7a?|& ze0KR>0u_z#v`^;2O{q`vj`tm)Ih!1m9+xW(^;03v=CIWsFz?af1hZGZh{cyaj^$^5 z4vXLYWpp=R@GI3%uAw`68U4{qegov*Ih5HVhL=libE~Cg*6>E6tw`TcKaF^UHAmG%;>N2d|pM2PwT*OUrkc{-;xM%E1bIvn?~B>S){!=biHH;CjmcYdAGA&5;ug z0F|mMR*$PVIlkkf&y=B*G-0Jk)8C0S?Y`*V1ywLM7DVEuk@-`$`7g{Z zGhka`SfcJr5qXU8|0ZlUP$&=MAn0bUEIGri-Fm_V^1v}-7eEn&6 zIu!43MBLOE=!8?QB|!BZI%T^BtV5me!Oors&R;+`+`{~sPhs!l{{*Yw{O9PeJ%h5j zh3?i1=+@WKl>ue31okfg-O`UCPe-^rzRD=5D{8WS9M?Sjda75URsOlhX!_%gMsp$@ zVJSz}XEdseA_z&-L|u3;XiuGXF#o zr^4Xeq6X9vvj&(^Q~ea66yMtHY?||Jc$7GduEFxKe8QLf2skn?J4Sn}+n{?Xs2o8l zMFs}b6fb)!Ci7(@0kl&Xm8EEAP7^I^R4-aIr}Xp5Ie09UCaNQH^j^49sPQR)%NILH zwwMF60R=bFZ(l;ceir@lS22I?qgZ|FzsBO}5235qfc-ge=?bua9w_^O&3N;wSl8DX zG+n~HN^u@aqkRQQPr;FQIbxcqS9hYUNqre&t7>%((mG6-wEQmJ6LhP^FB4RYQCit9~7YL9KP#^4yZcAgZHy^d$9e7 zd>d+{zk6N(*Z$gH`#DzJ)@%S%OF zVMXH?-;sg>tg=whx`I+SDC=7&H(tX0E1$;V3m?b)*-v41@*=QY_-KcvZNgv6 zO&007SDpiJcrdz(lszH3H_t}0Y1x{O@+?jPg{LZ0-1d?ha`_ciA{$8s5z*N4oSc+8 zfKa$CaEBIwgH)m8JBgpcPZ0)k{lf8e9-lVMjxJ$qNIc~|DLC;{GaQA9Y~)WM;T%^( zhM^Gg`Xn~-YW{(v3@doudjsO}JdWqp;7bN}XvZ)M79sp_0^)JqSV{G)KdLvSftLwL z(T&qv24EOnC)5-4*FJ~YbDzZGrB7nM`8>)Beh<)U-=~OoXTDf|X%sJ4&N;o&$P<5u zej`!^YV`TAKu${Ig2|Q=Xd_JSROUPd>}eI!ER;kOh4I7lYu|wi(CVomj35i0G)a=t zNiQ7EgT)vm0Lm<_p-FD=6cDa&p{uhp49^;bFra^L&;J2F_ipr;1=$=cKr0 zlJnRlL?H>H9F>XL$hLP!c{NSfgjtrpMoVe_yuRTUWOeXVLb8E06SEagFWEzaqR}<0)-b=AdT9QMh!Xm7k4-n zMlt9v_7<*wCOfwVaNS9dY9q`lI*yz8nkUM9r+NjtSdZdp0|k{A)wPSOSS}*c8XV0szMWLNJZS_yIjdL7;76#XK;h4Qf0G$U5igCxBBONf@sei9}qi=D5g&l*aZWXly z(>X61c-K?Q!f`Heel0tCN=!kxZ3KvNR2_GV^05Tc0g2=q?Qj5&Q-r%`%a@}$8ZYfi zLFs$gat<6Hp*;T_)@R>`qsRY!3>V&m;mlj_dgJ1*ES)X)F(eqris%l~-^k;A)z%*n%((;0)^m z5iK{7WVIRfS8Z_va-n%6KWn%~J|RRYUny(}qKaA|4HJ(jC!w1l0Fb>3%2?5j12Bx< zc+FS9av$Alfo^Y(a<~U97f!1RH#m$2n?x}#iX{D2CWW`xD0_>; z7nPeS+M!YH3iQM+PS!9;QYPXrAQlA1HcfaTz2RoUKu)lmaTisGyogRP_zp{H{U>-( z12^Wz3)z9c~nnTu@No@$1|W1u`dBdfAzR|v2~ zDJ1PG8B~r5Kd0YZ{qib+%{e`?SOBX9x`R2&{t8&0LBSm5Xp6GmqHIS$7>jU(v18!% z53|<2kd397zY;Tz>0A)v zRsC{6@mh)K4Huh~TV-w2EK$bDSW_l+J32Q;W2oyp(Z{sL2fpUQ=BSH{sI!9x>n?V8 zsd2G~;p*cUE<6OQ9kAuRJ&N~gH1|rS+}MwQ#n_UW04xuAreEV3^VtwcjO}?RH(_8g zXo_L{V{YyTZx?kV5`LC$ZJcCM0*~zFZW6J%T(qW*JYkVP8(Q_u(aJlCPoXWm#vP-N z)Yxo=vfM|vT%hbNfc=##N_0HW!Ueq5M-)Et^*j@v6!wCa*3&amtbv)9JnM`JX;R%N zy;2%Hp&J)yDNXNQM+K}exePMsL%g}?z92G4G*xM2{i>O2E;quy1}5Q~(i^-Un?WSJ z%I`xRC|BjJhG-}Ms1TKrbNCUSXvOk3o=V}wJ4RF7lO>@m@X-c7Mdz|;?P4)5h#X+! z2B=$fHlWxRs5CY@tr2OABg3L)W-PDPMKty8Tk(1Y3j63u_ zu$aN-b6`0~*L&gW>RNA+^$XI@t1O$XBAir=ETNLF z3ZlB<+&Wu{6oR9C=@I!%kWK-HHkvD=LHbf~cKN?SZN^Mkm7b=tf>YkhMH+>Xl^>5S z^D#zUI67lPh1mjiaRD|vnCgYQ)cxDE$sbB*^Cjx}tEgu#!K?>HKM2NKF7Npn*f^-M zqJnhxr4Uoec>KngZ5l&7OCc&8vV|Bnvu5K&F@CT-h0!f)w1!OZqc@cVo|py{2h{xe z9ZFwGjDZZ6wRDO4R&q$`(GK+Dsn4NftPdYOf}!?moyDD`69oDrZKM)TUQf1 z@kw$MPv%hZF@Gbj5AV0K74L!0=DuyY>plDJ2;4eBdGR{RvoE20`UP~)yoB=nHI(PC z125bJp1%P+cLR9#8p?C8puG4B%C+k#M@PVB<5vb0pv-0{JZr_e-jDH*vLexTD&vjL z{pIb~gJ;GAvP5e= zFuf>Ge~T@(lag_CDG%*HOrUZS-_pnKCLOQ^cp0LkhR}Bm1yWRb2F8h3o9>o}b^}=) ziX{*kw#%%;>%1^DKzAOK>?b*NW#+Jo55I(JV>4=KsFtFszAb<)Y%DNa0J8%>D&Zb* zcc*bNTcDo3gnDoRhM8ZwRR`V?L4g)iTX0V>kpwFkb1IUO$L4mJvx%_yGn%TY%iJ%{ z6!a9?+g8GpXSAZpP>2W_Z~~p-=Tf9sPwC1jVh61zXaQ<`A~!V@sjM{2P&|@vFDT!DOWM*1W-7@9wrHww@e;$u&$K24sWm&N zpeqreY<7wf^vZ}vyq(B7QsJ72h|A8wFanzqwyCgnLEX$?n-%Kz5Vf91#bu1;3dZg# z#&Q({E@Q+cjCKxVJwzRss6!9i8nD@-3`4X23Vfuq>tM0ICmCSsnFf;9bOv8 zoWnp?Q1Vw)$$-!1v{O{e4CoiYY~edebc}aUku_t!!>COuG#VFpt9uGZ9y$nMDl<@} zHm@+C3_kkEG6b&&9dojV;q;|N-z7_|Y00Q$z${BMh!oeMDVeAnsRD%RH44)rOprn3 z4B{p)F2TAb zYMrCh5nZjcTFFdd6u=p$7`erL8d#9Kl@=P0qHMyotUkkGh~MhKEM&vXg1D6^VQ&2tt|UOT|l zn}z0{%VeRGz-LSZ*YiwzK>20j6jy!$U$kI?hB4`W*UD_n%o)djY<%?|#E2gb5l8rIc`vfV|42m&>uaE?#9#TZ#|3dFP^l}$V)lhRf|TB#q$EI{0dXq`Dn2#nZ%GrF1P^Om&Pb>L+QA%Q6mRC z_2F@qht~+AK7B#5sh(h*I_7#Ou2oVhkE=RYx1WCI>t70abfP;cltw&Cj080tqXWTh z%qD&&>VCs@uupSD$3d$M@?fP9pGnFRe*$PhX&13|-9(;R9RChTJNluZ_=Sse0~Q<9 zYeyJ9e*^1>{sfM{{r`x%|G-_pm=m~LjSDjR>eoMn!+-F9#_ZNJD3{N{W_vKKP^zDg zZ-s&jSFkbnC}sw@K#42fDKw!_6^YK-+TZ+Q9|^THoI2*w_yOK);P)wi<`dZ@{EWZu zqqvRnBVzFkTfR}S^y^AVxEsru4$gK(?+HTi9g&8Umsi`*=+|Y!FvN(l&i_YonlT z2v|3OE8U%Z8*ZM5747hF<6_E!0_17DoR)UUcpi?cXeQ&rPNhe2<3co&EC`0qvOuz* z;-!GoSp;i|4uvw2ddw3xDr&bHFh8%NqLd07Ho$fZY)9DGq2df|b^+tTRgC8!#c=ga z7%#p7aJfTG)^1a(h)J@%Nt_n1&<}3OtKKs{o73l-u*#{9#y+-oQ|F^ z8+Yy?3A!pNm=9^?1}}Ak@Ctt4H7@j8VKZosKjjZoxcb6I$0AN^t{6jeWAOA0yUw<07a0txzf!TgLvpj|in5Tgi8-8307Z%WX^6<=PYi&@J@)L+ha;b zjf$T9QHT+z2uc!OFJbobXEA^76PUg9IrJ}m3AX4^_vR>v`{)i< z?JDhovMwX9G+A&iP{S=J`IPfAdp))9Y`VHrPhLF9xMCBIZ1_5jNWwZ3y_Io>UftLN zm{vU70oDr$@um)BEN_Irv-R)PCNEtfjb$$5GtIWJp4ldVJYCvvlHZ4-sg86MshI%=D84 zyDkd>;E_U#aaz%bU}s=Su*?x~xg&7pVIILPZ!OwtFqD&Lq0(vLX-ltOT*KRlccX1q zb}i2I3H;*ST^KA-8T6^L&=8t{rAPb-560trkzoO}ZJ-T}3G4#GRZ)f3?n+Df=eja> z?owIgf+jn-?c&k4t?rhkHEg@th6Sa7$e+73)PZHWCJ)Oc8pUdV!i_C`k#YJKzXV=t zDEKhk4R!9~;&3_Y0IWACw~m1uN5J)4sOt_xcLCe8Z^!1r4`BW9cVqL|_hS9{_h9|R z2e5tQ+b~>x7shi>pzd9U&G%uwuSanB%4Y`a=CIiw>gqhkGY@09_*M)Lya$^{z7v~A zKZwmE--GR?_h8(A1f%Vv-dY2jtuHL?4Ru~nX9cxu8!5sWBvDfuM8%}ane3uTJe0)7 z&Mf3X&Z0U`plX)M<~5A5kq8!P7Hu z1Aw&PGNR-nOvr3Lh`5+OD!<1 zd8W_&?Z>GEL}ykhR8gFtMS!Cw^1)2a!uKf$Wu}E~OhkOV;cdo~f?Wo@N8su~nM=@` zvT>XRlZQ%CfMQYGF4yEWCIuWN;81K7t|c6ZsHu~+83f~JHVDjP03)4t%PnKnc?Kpr zdR_pln>cv{h4DMXi#VQd8*2AFPznzfO3|6W|7O}L4grXbRTRA=4dZjvqcUGB9nbk9 z3=^In*E+7SA2%o`$H37E%FScgW`vD~;p&?)Jp4{<9{m7@hrSioFJSXM*y=27vCk2T zuS0q33hwPOy6r8@pZx?DU-~6ck0Fs4*Vt!Co=@RW}JTPW6k|`SjF6HZ-DZS!y?oK>TWTPrPZQ#e~ z#M0lR>fNw#Jd74ID@&B@`iEp>vG;&goy0VI&vu zruaHd^)F*V)sfmcrECxyoC20(r|0Ep5T^+ak;-4yGX#qn3Whl7Jtt32W>|)IiUxAF z8=mk8S0;3BkD3l~5(2S_U*R8%kFV`S<4HcmQU24?HQXbNvJmpXV8Sxu;w&dT8MnY2 z2OqbO)C~>Jy~|)7N0bvcC~)l>5v$H$I05#f&k7%OCDAz&yRU)-jNpJZ34&P|xDSxMMHv+QDLXaziL8*}+-V$KHy1=^@y_3$?n;>{Ni7 zGT>ZWFqoxV1mO%*l2KfW&O6A`ACcpym`?2!zZ>T}b)sF%0&=~1# zdV-$wc3S(9%%`FrIx!&?m`fVt4dVoHZh>M(z9L2^ymYlUm5NzA_SmyXLaQH@OpOpP znF4o4MEM(y+t99XaNND9j$A9T(?`n3s@HFh>%;PB`};ZPtAaM8EE@&Fjaj7F?qMxo z#V~LvnT@ULOY|fkM!oE`Ba<=-MNp~cks~jR$IJktVPic9`7%?dL{TWmS+|P{#mF9L zQ&?@qPU&Zlv z{6(za`lA>xylL7%-%%HZMm=~C>qkC-%{%@i*5CFQu|4}%)R%6ed+`YKSJvnT_!dy| zsyZx^u#Qt$?wXO6X(aY=3OA8LZ3p8S$g@a%Yr9ig4SWABej;%$QR1hFOju!LOKrq7 z5)o{fM}~zw>PM@$3*wTtX;~mOyaBM4H_JibVjj=aHeo5qEGF6B!O_TP3NVlBdX-af z0+KozhOiE3AP^}!mlfyfBK#A=daK|K(W3#~9?F@=frAHtZZ?5;H@myrxLEDOt~~CC zX^nnDqy#&7kPI9Rn0S^v6@nc~0*(2|u>P)Z#qlr$jhTrcNHY9gx}v2Oi+Y;);cIYk zBvfG-F*RWM2_Xm40xwT9Y2@StPYMq#duWJkz_eh%jhjF@;-^9+I>dPose?eZ)DT8e zbQ$&AkgCx`0et7ME1TUZZ00XlfTZa$Raz(xOX-l180JMgWwcs*apsW z8LtE@=VzLm&VE2MP?`tdZ-?vjD?@UgA(lZa#&S4jGZ$druAZ&FWHhVP>AtEmTKJBtNgYobo zj2GXE?c?8#^;`ZZ>gr*XnP+s zDh{x{`feP5=YNQ!@A+Tj_`UygY##kK*!&Ro8uj{Ywuf==3bt?hL9E~RmoT1v3vhFd z?&ui(dX26cr&QEE0hwdMT_k+wBN>h@POSj-KnlNHH&who#FH9xB1?v`;e74Jg@cw! zN*u(!T!6V7mOR=w(&%7i$E#S#amX)|Dyo5o1+R9OOojp4GGgSEwfHCdn-1M`R&FDf z%-P^OoiO?ux57--suiRW3IdD=VZJvbJn^w`Npc0!m(4;08MaN1OF13^!xDA%fUmW< zZ(Q6R&SneLgL9~hebmuU@+-sW4N~kFxt){PAZ}A~wc#TWx*gG7V^)2815WM?Wg=y> zE6^z`G-c8RF-dL=e@c*;Z%Bi(&~$`*h8dBLk%5wDiIlI$kNT;OT&Oo17zI4=hjdYNGoK#Q ztP*JaSY*wJQ9mBRlvu`A6^_ZMN%^S!=_8S;(7=icpCojWYWj|0dAANfr%E_#DyC4p zOyrM%mGCr{0c;@5+P#m;CpBKqk{)K2CudsqOU33rY|)|E7Tu8>6XoUWz^wsecMj{v zzYj;>`WJBYz8}ZQJN_uPm)?T9cM&$<1Nylt`89APOev^~GZ@c4iuD`5A1819W2o~7 zfLm)H`j(*(t$&+(5|!d`Cd#K-%_IhrLUungg}K4O*LZ>j>72`R<#~kg58KAV*iggm z@tCoa2QvNVDC&3tC<|bI_MW*@MDDIOF3`_mduLJS z`xr-qZAX-0>lM$1o$O*pr8@(W0Vps!uYf1gx7F|kjS+W*LQvY-`g~**P-seImmB(E z(WDG0^Z{pA(3mFHB(T>ip;Z#o-5ssR8z_gtLV?p!%h+kilpxbC89Uzl-BGL%K^m(0 z*JIFViXACaWgJKZeQ01r^)Y{j!ib9++3@!mLVu$1a$a!>U4ToD@IujeJ)v?~yG~>0 z?AxMRaf>T)&zl)(^sG3diM*aNA_{+Yr;H7|Iozr7D1N3#&@AKH$|G+X7EY7KJ1jKo zqjMb9MpTQ7voPym^B$OYep%S9>nPW+!(P4xI|1ta3Qpei!?^YS{}pb%|1aX?9Y2Qg z{9|rde7%b_zb>cpkq2ihjQdxye#7_U`0alR!}4L^*48hj0!Pm}py-rJR=Tg{ss047 zrDl)(Uu1}umZuwj`N`GQ8eZlk;(Msp1+cE8-f5^C>&aiT^KbW_2w2L}4d|u{rPrKa zy=2LV^~@q~0TVYy`6y35njnI0r z=_s&ll^=fY1?uSDn8Rj=e)RWi%Fo|ecUPCxx(+s9`Upmuxf~5!XNq18rz}@z^wv-& z-b@PGc`ge%hutEsHodn-+Z%?Y=*6Y{b&EG7q6G)j`!qmnT^vpbKT1^O@Ec!HJ=f8la$r_yvVES$cR~4MocL7GT)T<# z)t7)5Zo#fqY|g(EC-3<)xb+=>3AeueFJb%0dtu9Seu3TV#;GDjd-to0GZ@c2g6-9J zV|(dcux;u;Jy!fr@9Th>@DNk`(mqs3qa%|26?#DpU!+fN~r$RkUlxnm}`V%Ze=oXHa zFm4!X(m5LSEyg&~Jr*Ovk&OfAr{b!*>1*xCb&syZ%%9$ohHL8#28@IA!&rSmd|B}R zq;fu2juxSBp0qaZ!z2N(|? zz~<_^vAy(7u!JevWCqRGH)h{fo4MRmDfm zE1)-E$-m*R;D(JxQ5#pdZ^m6XBT~xX$~-^Ky6`&tR1VR@SjLd0R=&_Dr1R9}GNewA zA>>Njt+d3_4T6B33zjKCQt_V^-2-EO2;4CGl$jO3WUlm+^mn_v%Z&>%%xs2kZ-r8N z;Aq1Yyc}@=0QR{2wJ~*S8>ewFkqZAT1%>N4JX`iY3BwxzXI@X<7~8We(J1(ghLpb= z|4DYCMj{~L>aw8x3!tHX6k6z=AJzk&h*)}9(b!37g_aKmTkWfVdJo8Hyz~;v3oijL-^94Qij%kf5RSg{Kf=u)`Ok6kO@9*G z%Wp^BJ0Fl=zb+XI;?da(p&Z+MZ>dQdEgnB;3?_= zNQQNon0cNkE(#gnlxObzgnkjyN#(T;U?7lMaRD;Wd;uIB0{skjy!M5iWCCYLF*RK*03?WDV`ogh zD00MWKJshO8*`~~-iC4Y5JsGVom60xPuKN&n({zY7+ETFU(2H9lw4GVnp&PcV{juT zMgVtG3ua`rQ`hFdj!y`A#BIN%LC9_69sij?jUZo~+zf*(Li!Cl<%A@o^DCd*Gh;&+ zt?}Q@p~cJep|M=}9tK2;0!-yT;U+(mhh(b44Ghd-=qD8a#<*Pm*T&t&#zi9Tas|6^ z1-94&j@Q6;I2F~6=FEU-!sMzu{x!#ULo6JeGB1x;u8PF45Y9B59}R$4Gf$1x09z7{XN7x=;8m?R$@go1gpRk;ej$_ogr{Tw> z962~#p{KF_D&tZCwOa7VEIMgU9Eo28NL-TschYbaiFGtJmlB!+#TacDOXA0rb<5xD z)eS;Yw*xTmV9Op@&476U#uMP?E3oHZMm?HgbLCrb{GLCHn?LxU;pp4{0@jbcALE&a zGG>2BU6WP&xfK73K#xR*w{5?!Nwx552uxKNQ&{MdoRSgj7b81^k4IPEpShK;Xfsy%9d z7Q_Cd*j#)UHjjQM)^GZLoV@*qv3dOc7|%bBx;iVsfB0P~u+>?N4}CN0m3P5x1*}JI z!PO;+xJ@M_-hg~+_kqm1L zXB=-UwD3=hGyM>v0yc!HA#ZWABV6v%2nkfLf&0eQ%kjtYZl!gYxxD~1GU4UW(clFQ ze#ItIIh%>&)&0aD&NnGP6C-$la50SS9Gl=Z@+cQ7@YV2x_QUT&w1b>zS_(660AQsMWVL6IQS(OA-FTyF!*k4c+AjTlw(- z(t*;?!qwM>xDN2MDvEUFsV6dS>!@HT7=dwsS%-0T0d;lZH9G+AwRCr{agm&@4lrJN z1oiMd7az5SK8Zb}p>Sqv%q&LAES2B%-5S=^vP%x9a*&)_@+62M9E#EsM`M8<^B+@O zcRXAE)H-d!U-VyLVQ@s`1YTP#8_kRg51@ceTrSUT{Nu|bv>fTjbko?1fd({`=59FO zSxj}B6vJOrx(V$PjNM{Q6xdF0EB_jHExd%Qmv5SkYA!{YJW9a#UAjaql6P{=O>y?v zKvVcmpxyl3-wJQS?cj}}jlgCDyLF6uJfe;Z3}@bm^+Vr*&7&W{`tc89^M>!j_R(*_ zaPe_pu-V6C)(?l6zBlGV&B4892M6jULQM;U^#W^CVesB!dlsZh}kGsubd_ zGDLL8NnZ&RfVOZm%K}78PSFCV%8^}*Lish(2aX$I78s{_X3iJ;mtKdvpk94T(6^0d$70v)Ij03J*&Off9d8iRZb=U>`Dgqyl6KtI^N;V#28ur0(=Oga}7c z{%RS?_f2qj1V2D%gn+mfExgk$ls-ReJV-1K6r-^Do^an+FI;1bZgKkgDVmO_dIc_U zEzPt%g3*j387fXjr>Z|%C*g%~dTL#P_Vkm+L0Br(K(f);qqLr$&}#YdJ@6?p%Hdn+ zvU9vFMxl1{)GnORR<2g{g&2kLlRR^8Q!o_U^*`%4Ah4%Oyn|{%Q?EPUTdz7}9%IVO zz>$u`U*SlR&ac9*U4eB5*nqMvq z_b6<(dJX28|7~tslXt|G4p!!jWt3D#4bn;}uKwll-pIw}XtGaSVK25y-ZRJ3W%$$BTGRE>|F@3?}*XmFYZ z-;{Ldo1e`g zZs?ApwHOYI6d(>gi9tPJnN}hvM`1%;4P~qV<`@sIVm!F=Iy=AR8{=MY(*NqX*#fqI z7B=5&jBR6x43PA@Q2?_dA`^zZDV-GmPILfll)i>RkmGse=AqX>Bj=HE+Ch_HSy_c) zFQM8^7isysqdroACqLEDDUc0$`E!-Uy>eQ-g3(ef-^5D)8^-YnO4&*WMFUD#a(ThA>VAe3tB~JPIGz?iJ(0 z<_p;VdDv_ZbqmySgw=se=K|%^;~L_VYs{Tlz4>UoGaDG}ACu>Nw?b~TOGt#7=IY!E zc2Fr^-X(F$=uvAVT=c5#X*4j@8&@3Dh=_W?gl)yo0YMTcS*9Dncs4kzFF zA7Oatn_>Op55b}}l@~$LJLT&BWo(}KZfqa;7MLwjwj;`B@N-=Xd%uyr*O&97C~{K#&vEgKRWG3OHKEGamrdwA0Pt zjjf@gn&U1ubT;-pyXt4)hzy>!cE7aIIs|AhW6&VV&|DZ8q_4|^3KT^2@Cv^ViTbli zG0PyWz+~2SKHZnrudwu9j-kTp0=Bw}y1IPdxVURw>0z@upM?w6Ru>L+EJ7Dj$+FGHIvc(wuwqRAX+!0FOiV3-INivH)B7m_f;XToW@~MejJbbc zntqdpQJ%R>{FN}rJZwpkJVGl|6qyDJpNUI(>AQ#?Cgq`b(WDIvH++;hmk*&tA}^pR z`s@M+_7)9(&{@<6G8L34-~=?`0msQvr-3BABEUaA2N`FrJeIz_fP54Opn>KPnhqw! z;=B*ASRG&(fpH70Pk^Ii;Knh=`9*Br@_kr;%b&){`~N&PZ}~oq7am7F`ylH6Mc8~b zq3P?gqCT*@uk<*qi|4 z=%+I}af9}1$i1;^{$$j|0<6#AWr~z3Qsb4(0!`A@IO@~oq{$lVO*-(D6cT=lrx$W$ z;w=x9K@|L~vU0jaIC><-rM-}FZOwY~b&xGzrFA^Ls}nc|-t@?_64^8}BFY-HBrP(? z7(o;~B0w4Tx*B1diaHcncL2-|?y0NRAb6v(nQ#fml@l4>+EL1K?bJ*ex>ijHfIY1q| zWL)$#F49O@5WI6EPevvr$e}s>?7OTKGqHbke?7{li+z}~F3 zCDI>~R~5t5yHE4?Lc?PCr1+Kk4VH*96Q0gi6MuH8gk7i=%R z9VhSnQ5=8ZFX809e;V5d-ih(>ijPwCv&I{@b;|oSbk!H1&c6H`Sp83b7keN5N$h>% z|AqOBA4A{2fZ6rm#r)aNpgVqpdMVo_R(*{cw^txmI3vY zqviGbVd#Xc;v@g$UxkT*Qyc9vBp#%}0;6n96rghRbUISpKNI>`HI{<9**K$jA(4pz)Jm7r7BmurCZoXhMiV@? zpGhDIS}wQFg$4$dPk{ASlZ{$r;!hYY#3c(oQodl?O1#w2G3&s$0Htff>Q2fdH*U20 zNrME!VMJ%B2~*HUk(i5j!cv*yZ<#1uE{FkOZ4s5|)0J3X(CUQ;7&&1BkH|nB7pVoI zrUEIvp%uk3{wW&ysD4hs6kqt1NxHJV2(Gd8&7yG7RQM^E_8#<4{z{~JPauQ-G;Sgc zAe}~Uyof6*fXx==M}KZd>k=_j%GtA7`JpZxDJzxJExmNzgv`XXj8{0_R~S5BRk^7XiScm0-hGxc-X7m>pXm;Ga}$@?8wjBd6HeBQJX-! zOL7{zuadjB zN_=n*c<2o%duPy}Y*9wvG2$+5T|#O#qvy;|HXM2I0NN7fVA6cQFCq%YQ#fHYzw9AM zAsuW8cbs#%zneVTb;W9gwJ^(#eFL-vGXzOWul49-=sj@qsRZ8+)`oBkqyvrHdNnkw zGSPy_xUmr}Jie?W49}+J?Ts-5Sk3}hl#bgpA0H(k%4$?ehoCvQAd)Bvst1QEYf}Yb zDXH>BNGd?Ud;Mtw$AQq;fktfL^h(=AeY>Hz51YKpg+7!=7(&vOG=!`3Y7viTL!US!N-VyX z57($f8T8i`jE_LJa0LriyfGgwtT*bR5N9AQvTpg8-J{f*%`P^f)8JcU%jmbE8fK{7 zl4~vg5XjG~;O;5o!Vb^D9(g0McNX1x<4h2}PP(E$Ss=3jssU3Nc1o;R|!z2AL9>bIY@o*zTo;$ymXcC46op58PQhrj3u0-h{k@ABK-0`C! z<~SJ_2Q%-ClPPUmfEn|=xjd>L(Mi7`J}QsFkElM`pl*TDRv7jl!sdbZ;N;zZ636fV zUts;F4`R6ZM%aA6;qrQOR)KMga&iORjpxw6_<78~_%SR$@sF_gtN(B8{rdla@Lq~G$kMNglGeOfUZdj>15L1vX6P7z01&(`AHZQVAh!Bvr3WryELljvW#KONA zY0w!;9Z|*+)-6zH+LC>5y1U=FNP<((UBd8&Z-$+{;=`3AkG?gu3$QZt!$c1p}1|6$`ikF>p&|vcf8CqXJr=5P1;MV$?2iV3zWi z5H+!B;ht5MBBG!F@p!&iFgI|_hcGxG*^;UV@g$`a8c<@*0t9^Jk>CobTo5?Tvtm+V z{9q4%^0W~h(b20SG-x^+m~a?Jdd~3@_KkNe&60TJl6a0sbH@mk>fht-)~%rp#k%h2 zx3x7f0PDK%{l-#^!1frpc>{RmiBgaQ zZ+sQTLF3)vRZA(f_N!pJXi>7J^i>A9B+FqG)0Cr^E%Qc`5$QXQXm(mCTs*HB&TM5d zB-YMyO59AsVBlIV#;7Wzx+YrNB&ZIUQsSft+D@MWtsSGE@|OGu&ipmXsEnrxEm@zn zI*zNez`+IJ9y~lt?(R1(05T3>2j?+9^k&q9^DgYw=URj9$zM~p$_=MKO?2sYJR*LR z7{ZlQ?S#2VwvXU-3S|UM;{-yJF@Pvd%Y+T%w9(M}?ssxbo@p>eTf}G@A_Or-amP9c zPfgvN0y@QI2c_nmh?Cp`-_x#@()_O{Z{ad5OtGbeB1ZGST@E=akPOn~nNoW;9vHYy zwQO5x3xq-xN)0V4x28@VV4TESoR5YraI!`ndyKR57!DuB=F;1+e$#j3n-K{Mmnles+X% zehyqZ13PyJTkZp;M;S)mSUN+Q&C!(+v*$jG*_VG4<@nleZht`Mjf}0%W4QPx)Y)0! z)`^c4=`gKHgX#@&t9F{v(RjI^79$LhPu_AbH>uE1trYe&`H@9qubg3jhE)PwV=vn8yuw@Ajf;>_q4s|%)N)YuR< z20zWn{^XwgE*G=ML2KSG598vfu%ro(y^Y{@OFairp$I>AIb;wynuJH31Xhmrb`my@ zuDAvuI>u2Q^MjrwgoR>kMrE%eI&R*JNFya-(8$0EBz)b$q%2fckP>SN68g-WKRX6W z(~VvxKhH-~DN-2h!38-*Jpt)_ZNx-LDw)S?imL!TirC?~q1Tih=dWW_g1ivq<>oEm+7ayf7Q^|s;OM*lJdVEqe}khR z`pek7>APU_{XZ1P6PIy=a&jH>CqInUzy1mAedupv?<4;Wme2i$ud8_I0QT4e7%xA7 zx_<$N1#AQ0XbYSSDBFrMn%8gXQP80q*XXv#D0Rrp^L4xN++*0j@dq&;z7gfd8rY1K zE0?5d=4XmDMoxOB@qR;zvMN`^d&P~J;#UdCaPcIKN4-JR*4Nxvim4>~Y!ZBlhZJKx z1#Dac1>uU|#Rl6vmJxPI#!2zKV}ZGj!e?SP&V5w2?VR)9IQE;~%{*v$f+NDk^3-fD zE3b(sjR={re7%K-dz}G=dV)H~iIegpl+j>yhPwX{>X}D@*&cDb_uRcYGbWydCtwzTc7P;5p_zi4 zvO1mIn`wR!z7}6b!^|jdd@znDCcb(EGzzqX^A6hiJEx7HhMNo+1~4R1EmtR#sVa&C zXr6Krn9^kYETv-t|C*M^K`35}e+sXhA3Y2y-=IN`L3awg1GA#@JE|`t+^m72Vw|7F z_Uz->Jn$Z@AOB9Q-}Zf2zwLXmdFux;UV5CTYrYOufkrBBJcs`2-@@$kzlPaoe;M=N z{Y5OE`UT9t^vjsN@LTA{7g6>BoZEw)Jp`5qu(E>H9vI*^m2M4XFm9AFAIa!vep5}| zpc{^TQKuHaex0uFU&i)*d?IKr zz4DpjF1$SbZE#5-f+WeuMuXKJwz`74{~)Zt+inE@{kzwpM!CZ-3tvBjE%s373)H@Y z8Mm#O_Y7mfy&8d-`{b|qRDx*MMjxW5tSfpsRgo-vCTbS^ZC#r0qeN-_2CP!QI3ihy zH81JdCVvUhs1@Lq*Pmx4>PpLEmy74!PH>cBV;RgL6FTXk`AzjwB%(WX(nyDuR#q=m zlJl0I)7?uHS%c}*{HLRnhh#lZLyes-TH}x~Yl>u2Ph)KTEIO7Lz9_=yur;#ObXV)) zX{CIk88cCya;m9feo>W1Sgi8O^jL)9u!B~~pcCGHb1Apw4ksu_*HK=65p`Rze&jtk zdf%VI%^&$IIQiB;h2g^Eu;rPI%IngVI-qQh(0}PSu>8p1#qwYMZLEIkZ({b;hk^1k z?BW9U$Ys`jNyBJBn z2sai%(lN}yi_D7iqwn&Hj1&Jgepb(3yzXh0AK@qu9&G2j)%n*HhBj@Ins%1g^@j9s z8_{q8MI)<82HQb?2^4A68T`%{a~WenJSyQit;UGMF^qUZ|7X#MPqSOCzEfmz9=5s& zboZx4?g?jI56l+8Y!1w3Z3w&gaB{wE$r}`Bei!g2lzCX%JtT+`8t>{+6G9}JI!S9- zEn&#q-ld%h0a(CuAHKoxU}~Ijo^MO4uw0(xa@yPr2;omilO_$%hG3jwn@zV)aI)R-VjTeClYmLg_}#o_i9rul_d5=GHDoe;{Yw0(Ef~b+!*H zbC?=6z_%xI$Y0Wsc`J)iV|3{V`8OWSemVGSx*SQycGH;-vVHO>SFoY<} zS$vfRwL%L(GVG;CcZvySgWdAUGk0X*<(a5t5O?7Vw8OkuCNGbdnI_!S$&gRZ=#K(7 zM#cfQt*Ao>o1K9z&fSw&t;^k0#s#`A=A&)C@SaY;fR%+SfX;>9FX(FA6LWVk&Jp^h zQvkTeLR}G$?{jwi#{l7jI$N5#o`=vTWPcxjJW%O6rIWyjQNrStjVR-V>m`$$b(W1dHY=wfjddt{M4 z>(1ec6nb;#y$z10a74v1>}hcNw1OC|xm9*k>0m}i)wF^5}t zNOBKg<`du5=fSO?!TR1CChh{USr41fogTx8a^n`t%QsMudu$Hgh+E(O<2d@>{{)-2 z{|Ls*Z}n@?U(e1A#VYz6&tmb}U&P)=|33DA=5Jy3$$yFY`UT7m3ucd<$L#7QbmuOi zpD!^R4E@O#{qY8~^&0)KL9s1>!H+VpBg(i%83#UYY z+wmv}_>w4J69R6Fp!`ed>ee!Wka`M|zQroQAXHFyvmc zwri9yX&3=fs6d9Wbf!`EBRx9O4Ag@>H^u}e(aLE8Zb7Z+HUqG(ux$_P4}rxQ*nQ*T zUUANdwmLvPa{<=RytijYCTa~)xa6VN$*964vb@st1Ua*H49KYoUX!r|jDccg88==A zB*{rq0++i0%IF?T>G%_CCgh_=-QOib`ZjRRXxF8(WSj(gH;?9&TegU(KzGZu`w_Hh z@jM@gm6fq8Rf$KLX1~)7YD9E21jivreK*2H#N?G=wJCV z=3n}CEI#>DSbp-KVfn?6VE)RdFdLsmKR-r)I7fG|Kv}JPq@wHGs2oR>u}xpaG(m7& zGwz(;t%nK}U_Jx75#5bv(7*B(lwrM#-XG9;<7E4nFkX2pY<7rpa^mYQIBMa%$>`Z2 z%@4y;I~<-KCH;yGZHM7hR`L4|%SoSwp`1}jahnd4a}Sq8J;cZ?`Ryz;74%%FPy;d; z8Q0=*f{<@h8@gctcq2kj*dw5g}7txdn9`VbxHrgLNxdfB&3|d&4EJ zse6YQFFpY4W+=x;yj;lHB^oIpF`#%b3xqRhf#&4%!#2g(o2Q@!Ux#2#8QUXd?sjEE z%qDqzY6>AAp=Vl)0M9Vi2_%8?xkawCD8w!r7#lK;mcWrL?DgCP>MCVNQS*SYicciQ8zMr{&ttjg?aPtQ0_3NlNPq2RY-8lNL{{Y9| z`xkNY{y&59;-hU8>hv#3+0~j88 zFY59<%F!)!!$?^RW~4ll|J#5;=o>|qw0Ii+6rh@+MqDZY3287F;^=JuaGr>607pcW z#5)tMk@p|L%X|(W?Tzcv!F31Z--#T10prYyLL3a#IfR?aHqEN(3J+s|>PtKj{!ORF z5#0sE$>qY=RJfm0qv7mm61HB&H`JNFE{$}pToZ>L)~|dq=j+s<|3qOD%9yz8)b_uHi;S=AW(XP9od6Cqd~;^w`=X#S)+im2szq zN^smw7H;i?7LVW`nND&l@8pk4l;Rplf4-&{_x18SuLy7AE-;K{@GYpV|0Q5Z2oYBW zl>(d1{MN;BKsh-lW+>eTWqZR<>%3FDM$SBh;gN4cU0eZ<2FIV`(pWO_Gj&gbKp|3w>ij99UUQClTb`3{fkH7}tHf3&VF>l#! zCG*m`igLdopd5A5)bU$JC(&s%F^&+XMX8W}L^_V2ap8u(+kXaV+P3=n78pmMn*;Mb zUu*G)!LWZ7-MwR6BxmO?!ybDpY;_2ntWnI3i?|O0&h62x%F;$MEP`SA1jEyi(5mcU zFe(C5Ps(A2K|ST;U}t@J?A%kPplOkTa1vh0m;zz7hRwrI**P+>G-Z+$mm2`J;V2AM zOqIWQnD1WkUWyB>j11C?*QCce8K)Wv(JqlcDVoznV+_$B2GGEfA*8rIf&d=JtkP>? zDRD(pKoCzPHA`KrQip3JDd}zmmetcbUJg^k_}+W+-XHVS+79qum&F|DJCtESIXVJf zxdvMUb$$Wscl{`i{^v#PS#tV8~y$H!*y%hiT0>5?0Z#K=W{zH0#52?poi0{F<0 zXk+YsE;^KcK-pYJ+1$Ki#>IH%A#5N0Hq_-+;HbhzOk`7>>GH^tL584+pW6BaAAuxs z!(gIZ(A%$Ym-QkNiD5Ih!sC_FhD=C9(QIN^Fm011Mh+e1-=2SJoW+BwzM7E`NT-ou zmX*)MQSXIrhL_90omODcCHE?iU{ODW6;s4Vo_EM!IG0bb{1uL;!`2Qs85aXeH%FQ8 zyOD7k`+LgWo5sb#IgA${MV;@VZnnM{P7P|XeMkbCt}*9CA;7rskb+yV4IqfV7RpxwVVc z7kj_?kFdD)d35Jzz{P#w!Wr1XK5V{>Gb*})$MnmtRe9tAuS>5^)x9H7v~I<~VSbP?iW?%U@`e#3L$1XBMzkn^yqIP>2>kKwlVA#0c=u}6FT-y!5a+zn< zVDh`9u{}sD$*2O{IOhVyLRir-W|fGyhH`X`M-J8b6-dWU(4`ZCsxEQt4KQ}073>iaa&b%Q+#hEMOWjASTGv`h} zCn*gSB*w`rlNHlkc%s2qYC~gw!I9t_8@o^pDgy;Rio?cJ4L>hhnv7Las@gh^gj?~n ziX@RWfl!_$jT)5FMkq23g}=O1OyLFQHBp`-DDx5Zs4S*&QXY|s=Hp{l=xoS&)J7T4$Y5R$bA{T_VULN%MR)54%FUaw^@!p8<2ZizkKy?Je+I|j^&en( z_?;<}*Mk$?d9m2`7~RoJn7#5e7Ek^>_J02FVDF=U4||{f7nq$qjdEcRxOf(J{v5D> z;MY{w4j9a*foeOqz^hUtK0C(Z#I;7-4a}~oJJowNpJG7)mUEPP3;i=6NB`WXf$g1H z*lGO&b#Z{&@1vHbPmA!p3v@a!MSRczGHR>k!qk_eJ(22SKt>PU@t(2Wl` zk{I8DD_2N&b}}Y3r{rc`BI83&Mh!S(%5n>C=rVqm3a=aDDo9N}lpf7MOU4Ca8kz|* z!Kk}3j8fQvnd}r4t293*Z#H2GWPLH`{1D^n;yrzMmfXE*Tr5_wgLAOil3U=bUv13A zb}ndSFe5inOdWtTunRIRS_xD2hN)C%R8vn__KPfV!ka=)!kE7)jjn)%PP|N_0z_ZE zwpx6$bu$0wja#wyNcar!a#eGqt1^E@F)FAe@h-&j4~e7#B96s#o%9MAqyv16aD+|` zqP5Bp-g2RA10ZN(CDuMQZ=95{U=eReNk&VFe4|WZ!g(F&vL==e8Y%T6Px;7|R0mk^ z+nLiA+yVnSXC5B`V`I49z>YSk$A;~Nx8UdlKaS(~{m(Ew{7t+EMBF*%^KfG zcS}#i=td)Oe8vD%;o@P!s)>9)%F?0kT|qtj7%<;YfbLCqPZ}4PEn%xOsQtpv_>Z2E zdeJ+^MdmnK?cUaivm^j|*oeyFCA@g{iyq3~KvW=|Yqge5X;y{<<8=A^EgvP`(_ z#BbC~3KKZBvnDJtxH~%^2 zFFc8EZ-#Ps06TLYwmd*B3)Hbk9dwdxqp^6Vh-DR)s**K5sY4WRyp$G*3S&4MTdO`o z)O9>+`~`G3Uk1i)nzs7-T|Ijl;_zR#T*rl*`1B>jLi zG{7uH7w=dEp=czythm1NM0q+?s?L*Tnqpe6R=i1>Pmdr+F=24IwQ8_hV0%|k&pZa3 zA2d++sJnNJ3o#|&hu6&fP$Kl53tRQ=sFMS+*g!i!su5|{yE83&7{P4(SD;(7_)zf0 z>{XV#1UlF@30V^)&o8w+p@4`iHHwO3 zrqL7P;W+Hw2+ZzpkXmV?qI`tPZ2{7Y3ainVfEu*vC{fg3n|6Z%nDr=&88B>7Z{5Op z?G`qx%Q*gyKa2JI{y6Hn2mO>;qVl?Nbwqdc3i_vi3yWX;dszL`zlr^S`4d=u^5-yH zUq?B+2Yd7?>ZOaQt3%Xo?h7>szu%`bper3p*Zb}el`j~&^(>prIFE>*^&a#33MR2c zVrP$5N6s^yFSgvQQPxN3HaAhmHDiChu3)_QCTyShE??MrJfaMh`ondCska_!{7wAH zkCuk(DRQ{V2kI(^Ao{cj>UlR}c>31p>&8DOw?u#C#RlBPUB(1QNc+BByG~a+t<`Fo z>K}}aGmO{5Yp55Y2cQer3cCs%^=pPxY0X*ijORjZiMOcYkUPp@(+!kGEv6QJW|~m~ zs3SXFaAtrFhB|bpi%YPBhhg{dg=KR0h;h+`0)PuZ*Smo+^L_Ie2ai_roS+0#!s(2h z<^8rU!kZw;ugE+9CfD*#$rUluF~Sa<+ko52P#*dD8tDKJPi38yo46UD@Jt#!P|r_9 zO}&ntumbOWMI)jqo)WD+VNAdMhh=KoHOgubtnB}_9AnY&;>T`gtp~-=2J$wbm7uRMe9E5D8Y zOTUTvXMY8YPyP%Rzxh*Ge&!c3fA&cfY=HeG?A#gH!2z$K?tF2hPIZ-$2K8D~J!yEK zRT1rp;-|(kvs8Rm-!mT~IWZ9Wl z>$FbvO=IA+sg*wToO1Lu$2xrYCrT2w6XPVNDhdy^O%o+RE8|qM5y05P=I3GiSAhO? zej4sKz}+Lpg?jdx%?mJJz!rP1;5Hj7Iqv~!h|quiDQI)SvZC1vHt>8Y(4d8<31y*a zmoSXmf~8zd3_^5&Mu3=du3w zKZDH&{~YSYN8)ag*NZFLHM$$mWA=%k!s4g?CYC?*6IgugA7g&w%a|R`fUDgZ7tp#A+R5)*S zT}8htnBgX7uRMkR*0XnPYQ*MeQ1`B2?DjB@KpoaVJ@L8zQrfN}%8;)yX&wEl(Se%E zq!BMU$xDvY0?D+lHzYZUsEo$%Sf}tcMmc~sDyqZvpg0Cpm&sTgqokAc{^tIU&FxJd z7ToeFtZ1W&1e|rC%YKP(huZYD&{S@shssm5EjY&^ZH!w|b)}iw1k?`J@1rixa4RZW zf$u?gj~ExHofRGfet6EAX|v&#$cgbns^qIz=eUAqJRmb@iX#!8xTFvp*w%=Vg;Uai z8m?h8Z73CQ65I4ArOJ(z3Y?=&G>X<7OqE$Q4ioQ$Ym-)hAdT@ewFEj~`5zhqDXq%s zJ^?r5G<6=oDXg8kh$1!x7%^xNHo7La`<>J65`Gsq4Q0zNgd0MhuEI{%s3#+aGY@0? z__t#F_77rs<9ku}&&IBr*UVKPspww(GWy^BHS|yZGWySa1oPkiFy^2ACCtA3am=oL z9^GQ=*Pov|01o#2jE>UrEC9=^08T-%zMBEGdiQ6yQEYDFt5%o8=xRP9qD@|Qe!X5I zALd)Sf^M%zU$0~K+^5mK@@1bcy#vnrC2Vm9b?-dt@~qeWWuy-dpcI8fxFZ3)Yv!woqVJ5P9AdXIH-y<%G2?P1aT)j*H4Kk0f@Mzk%n-YZ?gKF z3T3!S(c+z@N;*NX3KE$)nhNtp!O&If-3plP`8`$lxOOLxX}<$Xtl1zsmw)n z-s^Wduxx6Cs^i^8ft-%M(tmVyMLfKb@qUHb2*XH{sK+Mci4PEnmLMPT6-~2KQPjKU zQQn@t`LcDbX6Hyt)GvEi8VxHQQ2LHH^a3_+Fy1`Ec2ltZ<{!ZJ`~Dop2j2|q7e1=- z8oM%XP)=^3fAW_w|L6Y&7XR$Oz~ZO=4(4C{1ZMLA-Nggg!m&Ht zM_#H%-_ki_!4Tpb*1blY)U#K0G{euIY(R>qv<^o#KCR5rFE(Qxn*r7p*!}`#yoTAA zejWV_PkG~iCtNA8evW$X0n|&617(S_-uSihusDv|*Bp>XBp+&$ONEsR)9x6J97wlF zFK~duNB*XCYKEQDLiBI?NI8aa-Zzp{XuCd~Bk@Ztq&MAAZUj;fWepx6KmYgny* zr%0IrWuBVW#(npid+jyWYvu~DcYu2KybsxqL!3)cpwU5ZyrX^2Y4u_J-f^QV}@1jlL6lBr*hjnRFKmn3QY7QN~;HX>J$g0JWoF^bxNtuiht5i|Rwic}p;H z>w47r+#AC67G`tQ)g=rMy&dCY?}8nk_rtMHV|)i)qT9rI!_pnS!kr(#isdK&6_&sA z5iGy*aV%c=3>G)Ph*@`x*})S1!4lox65V2sZbsEoYr0s>TM2K3{D~sxAnpIFIsSdJ)W1S-Zas z`qs=ds)SdL)ujBUn2I*Lp}U#N2yo}T(ds|dnIItLZ%+H@RRVVv6rC{7CRhgUzo4? ze~xw-CPEzVv8SEID}t?FgyZY*nPH4zq);jh(MdN?6RI1A5h%z#O6gfuo^L2)nSBLp zSv+kaicnoES5;;d(BHj>r1ENqj6a2ES%5nM{Derq&C}y|sQnCevGm1_$6H`|0l4r4 z?95fv)frgK-M(5bmuol3Q0jpGm9Jp=2Pjx{d!E2!w$LoT(V8?`QHB1GgR zpWk+2b^4Yu(Oz||6COF3)Kxx zLh(n_H?Au*GM7deDOX^Jp%AP;9IaD6L^4JgC?~GlrmD?#n>sT{ck?v4^&dAZlu&Z) z*@xs1r|^J3g$2V4rb$v=oed*v->Cq zdnl^~Fz3VmkRnBzY zHsvg=hcedr!986>yySI&g> za`JL-yLzEsP)~2{ZLzHJV`!}k^Yh&YQ-!Jo@j6jldP^-7>EyjbI6oDQAf=uU3R|%> zZ%sZxDSpPo`WV;_sF-8(#`j|Vz8~djj^79;9Gxdht>~_O6|3L)XW0Ll{}KoP^lxDQ z7ycd=pZitx+vkC+2e2#Wf%6w&%RLx+UwWjYnrq>KLcto5OKaVyYDXmW>Q~)IDxPMV zWG#p3wfG6ArQ`fN&_?)}wRNQ(hoQP89~&6Xvu{cPy7eve*PcN+xz_UfJ>7(vPPo&Zq=oZYE-M>-wB1mW!x98{9=FmtO)K#V8z8|8M>>%fRXfs@ zi7F}K60Bb|3gozI{Rq@y%4@{(y&qQGAXN%86w|fk%qJRsi!(6VsAtl>2{$)pB&*GZ zJj$SwUWy1Zf(TR9$tWS~T!3A?lDwR=6>NE!MjDm)-gWn|aZzCVXJO~Bz~&2J98rd? z-#Qu0njHni<$)%)CT|HZ&Gk8>GMS63K3W4!xN&nRQDh_`lU7M6h$6JqomBl{OIsda1_jj=~M_!Pjv;No=PY--Oa)H#ds7j@pgrva2a~8 z2-Hw1OD}&@6gH^||JxLfoTg%$zp`uPWk4u<=8+uHV8UdK2uTqFN@_tr^#--f6UDcl zmZKxo`98)=kD#8rih6LKXF@er%2oA6*Vd9imokGHh-&T z0*mA{WW{Udb#^LC8pW-R>4AO*?9b6{U&8#$pFsc0SEh-+raR3qr(7w(Y>9g2D(aaB z0nAaxAqeGYdLat97?$rPv8LXG0LFAddzYbtw&>Hq1~<{Mxv6Jp7}euW+2Sj3Xiw|3 zcpd1#uQrt`GsFR$#)U3GI^MD1TY5-_MDzBW!sd^?bUKc!ys1qPusE3l!M?8Pv0vVe7@v~eN0(vJ z+~#!~$AgG*Vnp*F@r;Q~S?i@oS#dWlOi zL)5?nZdi;|MjYbz*n$BHY%_3t0o@q8Bz(S`N-oMmCBQ}qS$`RE;0=SVXOi?+Op`d~ zMx{FKsHA+1B%^;Zpd<06oT7(ig`*`*zvCQ*R(1eX+QuFgcfDk46>q@MbwKB*MzTHj zdH-QVIl2W~9%8ui1jfUQu-TH+46nW`!v@{07qR^0&*1Q1{@-!tU;JNj@Zq1t;)PG4 zpP!(+xCAaA0%y+vi#-&Zp=`}}I&4Qyfv`ZXb$Q!p5X_x9jbJoN$P;c%Q+D9-qZ)yB z1F%<6tK`NSUMGe1s4SVC;1wA_>h%`S)2B{4_cOq12b=Z485$Q~{B`s%Kb9Ip5(YNSX`^jzTrrYw`jMYb$;w+46FF zB$~G&pWtu#c*h_a*Ce`5>1+l@=cglU1kgnp?Rhxw|92mgAPG?YQdEE-e$yIao+Y+@SICK3)RgfOLrhxuVc zK7_~yS^}82awerLB_VNOhxd)WPtK(Rgv(NuJRv-F*VE;pZ z3kSdO6IguZ*U|MS!2S$4dk7qy3E2QTZo3{~)o*{)Az;2BQ$yW!F&z=qYV{^-f;7qlj18?sFzK=P@v$IJLKgmuSI8MfXa?(L(qEy~MZ0gisZ z(;~k=XR|#Fm*0Wm>U&V_5O(5M$|D-#OieYe?qd*7F-D0$p>NdS0#jH)7l4LzyHHG# zyqZK$M5FI%G*Ttvy3BbRAC)u7wP`E3r#8};mEOuH9ZH>Ip#F;Ew}towc|ga-LsMI5 z%~_04C~wNL19RTuT_jE`l_hnQL_^ukndAjN{nn2_-2x|D*z6GX%tNsI7nX&)cZ~}G zHk-p1d#L>!6&~l-+q7VViKc|ZQ7MLE z-3j&twAv>Lv` z(Q|@lOIr%}ns;39!JdU@y;Hc`l(k_(<032};u{Liq8=x7S3ZOtO5f5vP0Cjdq1#U8 zTNs7`I36&bdlP zcDV&esS2WD^0tsSezK<>jgCgz%oo=d0A;lY*no2Ft0>3UQ-gH}+-!yM(%UdxdKX3< zz}BONveKO##&W2^RI$7sVZQjBByn1jCee_JpV4F((XhAsf*PX|2hkO&0%UN6?u&p# zYr!K9)^@?TY&2ueb5m_=XNPB~I`YpFBf1DIC9k4Qs(0}c%i<$n;#cY_6yFJ`Vmsj( zhoeO1aGfs_SQfK%73c=<9IUsn*%{Qs2k&24mfSsUT#!p(vxTp_Fmq*3OE{X5+~|;L z0k_hdfGI);pyPrf8V*?yOY9f*9|Kz=De01`g?MO4Qp32MKa~uH;6Sjf^$0jn0<8xz z4o5Q!&%fd4|0ulK#tOVr^UC(ov!trfC1;|I%CD=lMZ-)-3T<9+1sPJzJ80F~d6qMc z(4>;2ZY#6Wh)YT;atlTEe1YH%&pV&?lhcW6GgtgL`aA7P@#&AFSFm{UBRKe}zmC;de|A?o27)cFb(J!}B5 z8RLu!DQK;!aJrP}9XH}jA&b^gxk0DK&!9Z`86aN&(_~I>(%wARb|f|PC-0|P3I2)E zGO~)`7S+2}PTF}2PXI+oFJd3)#h>8_zEqFWf^C{7Y}DJKpL&}$Jx~UfVHv0 zwt)3#fW0fg?Eal1a`(1z0rrv?D_82q1v-pi9PGX(ni=x@MiIiYJQ%?KVB@T2VHG z9~)eH*zy2&aNgHj+-YZqvc84><)^Xu-H&4LSN;K(U-~#^-GFYCJfYGNlozjqUZ^gZQreKc567r7b9JjSYz6k-*YB`z?o z2Eb3#MBkxw72R+P-K`gZ?Qw(m^|;c*W(TN?v#2w_a^C#Hk;Xd^{)uOzWVzfdW5j9B zWkqEdEY+Xuf<`03YzD@ZW=ZeJz>vidaMOcaCvvT^zb*dKAE7fd>Pau95!`T5PI>Im zOFWyyv+5SDQm{MWmkeemDpp~m!G;3s4`HiI_b)6GeRSAHL+?D7 zm^gGG|3(j^`AO{jHzdPDv~ZAc)znY?m4;728xj#FtLw##Fwent0&S4nm3b;+pw=J2VfaCkvW)idK&O%t^v)2-`a-E3Nycfwgk8Mo+P zej3Y9e;D(xK8Z5#fW3XxgL9~}ebhRKZGo~LQMMJ`02K7z2*y86wfj_<#(4a2IRN4h zR)UHy3dl7IlAcC>=3#45aWdMO*m)VKg$;#L)#st6mbU_IN!PAD?AYD;9pQa4CB%ChUqS-&(?l)13 z=?hIyh#Qky0MQiAA&ZSf@^@O%AS&Lu%(RRHy7Gt!dBrtCi$wL#)1qGX_? zU1Z3B30j^Yf;pT&0g=)~h`FcYWfYwUxlpz5Q1%w+)~}#{<})ZaUraH-erNMN)QgY7 z&OQtb1-2R8=;>7EMC?f9=gs1-16D zvVip~p49nzaJR$!8|&_Q;{x3b_52mo%a6e33)E2;UGX^WlIkfx02QczM-WE>G*8!h zzl=l|y)@Xghb}m|XVHA)wSD=U{}r+>Q0kp|HYsys&sq6X0R1TQX;iQ*p;VwbOy*eN zmVbc*(Y&hWI{lCLXgDGu=h;g!c*Yt50NT0*v8ji#$22KD-=b$h<);V4SKIoSqV>X5 z#srWR8`Z{E(~3V{ZsG}Tx$}HNX)#jR3#5g5`&NBmc`W^HRNb9&yfACAhq`|rb-scP zgD+eheU#1@%z0dZBP?9mU(o8(3E@1ZOQ&P4kmwWh(_Z%lZN5DecZv@qourvE$*5oNt`Bvo~loA7`uJSD_Hhk`DqQCMe%+eJ&^wpJSEqLl-UGDPvUPOZpb z&1u?}*1~*?Mw10HN<@Rj01PysOV9g6Uaii-AH*~=I&K7=}3!fLwR zGdl^g%SRIgdc>SQxiRr%q?bU6=?kIm(%5uf41?sPgD{k1?>Ja0Fhy8#q?S$bL(#f{bKxD$~lR9e=MJMq{ z3-w?3%qarC>LD8Y7T?2~LEu5H>GJO#-o_Mmv9ugOfl(f1)eH@VIZ8Z>qZD8{M_J!M z_w46T?(~+_`98)AZ@_r=30PeM8}1%5BagH?@y59=UT$=Y(zzU^@9Vrh;dO7i`^H7r!_HoWUAT%mU$_M;9;rOFQJhFdZ92;Rd>+uh z^D1l~HDF)1keRdam`yZb^cK=U06>P8V>-9s&4&pzj4NSangT*B)_Z$pI+Rdbmw zgFK%aNE8qA@;ZD&QySju^EphPUrls``O0cfnEdJ3^NRkA6llPuA)tkBBAppv6`~>_ z<-x8pc%YZcuZ$~4ZlYmQPo~j`8F>CadCjyeb9C6f{)2!CuXZaZ`Ga}+sgONN$6Y7` z&klGMUEMp2;la0{o`2Bk7!}_6sgwp3_R6BIP~|GBlqbCbPvdcnb=yw7^w_Pk!vK#t zZ_#D9k@qt-iq$w^PEI{w_2{FXGEbS03W<%xf=C9XZ>x5m)IVOsg<6Z>v|b9zYzB;L z*o_x~%}L;KM_j)^-M@mmx&j-Pz}nDl)<7Ll`x&fr1JpTJ=ZW~)5e9I?sqNJ8^I23+ z;=>>{J2j2xL#-Hfoq;l-=_S^n3>yM+TF20xuMUa2br{W{P$pss9TgtFsZmbr&nB`Z z+zGe(x|oT<;0t8!wW#~+fkiqJ=}-<$y$;|$u9kz?U*3M1Tj31)H9z54q>F`lLFL) zD%@1-CqVK@VRUM&H9F7&T%ZKc|7Klir;O9rIcMI@M$rx{FPbc}utI%d6}u4~6A<1xx`0^F%vQcDk;@B6mY z)p^)#&#zy{2+XLRqsPH5>=RDndsLCf4N@oBnUIdI`B^jgrZvtwVtzaJg6lBWFLFlN zq|CW1AwM%x$~4ND9d#u2m_^>v^SixM)=B@kk=4p;pq&Jdr|C5}JmBe=h4qvR&=9L5 zY`#Q2xBy$+-zBo^?s?+^rJ$}3VEbo*e%>y`GFQ0jiJ|iYn{*U*DBj8Nr8Uc3J#NVz zSJ?YW$;q&wLJ#X*d|%o73I^v@zY-Mhn6oD>!zY^DNayqWIzxc#CisMMQY!62$ql4A z9?&`p_Mm(ug2F9<6&NAFa=;3TdG8qPVMT9$_lay%PfT>7u>rU?5cb~V$axo(>ep$j zeylX`P1mrTskj9^C6Suc>nMfNuyIPa#AfhYE_Loj5uHi5k`Dv&wX67{fOpT3ThsCWBnL3y3wIp=e>ONG5X=gMh}CpBQf(S zn5au@jYO-6_8sS4h@WF1u<=HWwy?+PV8|Oru%Mw3yvur^+^Eg=Gfey`2Jfkkqp!KB zPM0zR`uT{i9-*vn_*#`a;YxvZGt|Wa#&cIt_s;_G(Fn{cO79~#RthTT^(VTbbo7&v zMP6jdCJkj60WLVwKu%S5s34+nJ&j5JI3ihc1K$jb>3D!7!i7SkDg_ig={53$LvdQf zh*t-`lMm#Xc~SWnPa8Z`(ps&M!9t$lNFg*5+TyDr32AD{U73bAlj=mlfNw{`=l=NHCg zc2eYqR=1*KL2J>;1Ll8D$x))Le@ni0Nr|YeT*Lkpt|bXkXng36VdqAX7WD2wA!@Kv zP`Ht&Tfc(-+Lur^HzWJ6-xb*2Squ-n9pkyjU>m?rHg1r?Zzpx*LF9HCdn1b|uTz^9 z;)nxb4Dh>EXE;jnDe~n=W;F1^K%}uiSD4N_QcbSC119VOaA*U72A?ufY(tD<$vI4> za;4^clJz5f!%h4NzaVN_9Y3gi{4B(4H@z{bmE!o018i}KdhSu+{+%MH++AY6V})a@TEEeE^SOvvT z_+*#fM;_FJ$pmsGrv@+k`|cDHl&_u6P*B>GJ-;Rj7ezfH8aN7z2DQ<`w{24G3CGY{ zfpk;20#%Z6F>cbDl#IxobJovbiv#ELt9mfgnPH!eVC?0VQ@30o}K`_%9+13~ot9jBI3)Mn^1Tl9DOZi$Y_7ZD}i1>d}X5WuKHT z@NH8liton6l&oQEZdUUmn)TcxOcGL$9&Nb6)Am`7?EMK6o# z8}=lL;xSG2L!)3FN?%asKsO$tJ9-6WduNWAzO5?-_41<_-u?X;uf75G_!u^9U>IPX zq0W50g&JefMpM-Xp|VWWpnQ}s4CzRnD_FE7@C-Xft0LDH7j3k}qwn&d-U^4mv&=R_ zsd&<`{~B7thfozz4Q18?`wMhOFQEU*Z=)RD!Narw)WrdY^KZbg{}Af712zM?Ve2^4 zI06uIP$na+dPsq(Yk|NdMl-mi-`eC3%cP{iKLE_v64e6OXnxgte+WB# z6gJmY>-U}9edB`8N`WmFs5CANHDp3AGq`&+<}>!_cU7MJoq)JuBeVgt_b~A z+XjbazjCHZCOYk{H2gqb8vy+`mxhcp;ePay^PS?mD%?i{Q98eJJXbU%~ZW zCJ_*Pj~V*U+ji4Jja)pKu@tFI0_#JGegC>A(lBaMQ(j&__pp_iD6}7v&wphW$aAMr zt@2~);Ee>3uLS4mMy&(z(+s<1K^cxwZoUL;@9>U<9apbDj^SH>7~_L)Mm;%!4I2Q1 z^L*dOnhU2PDlp%D&Ix&&WY^qk$;kb)*36pc!#9^0vo&Kg|cN%@MWTEeFU zp9oGYFg5P<;>c2@_ZoEEgLN7swNUUT*b2-$l*1*uTQ6Yt^lziP`ErYM2b|6KF`RoG zI!v97^^KM{BGe?22n?tCx*x_*%bPAW^*`> zhXMuLq8utiEd{k2a8hCA4C=wdz1$zl84P zuM(?Q$JM>_*go(!3~&5a)OURlIJk=Lm1FeRuA#s263Y4rR<}T3{Fv~0hcYYZ$U9N{ z=4(VWvS;Qujv90XJmc`%ZT*vLMj_L1BdCErS=D<$m6z(qdBue%0ZW%?HInm%N8vk9 z`XW;`V2(!v=^h3fN52_%Zx3aAjPB*HqO6Y?^G-SEF`Mth4z9rFXZ+H*VT^`N)N@+% zdU&f1X*BshWhBH%sPm*Rs8&gs}@&UxQW+x} zB4~xA&u~<7a7L$(e=~kIJhJkgfMb5yhzZ@xq)ocAU-OTDg*ese=t&f?G%&4QS2yHH6MTccVw&{7(Pc$6j_-jsr4NMWxqriGG|pB{fvtoDx? zs3rHj4a7h3g7l*9LK3b~BB9<&76w6fseC{}P-P?_PbWGeP6BPl=56@GfMO&1x<)q+ zey>Q`gDuX%`d8t?!9V2gzHuQpo1s{xx}cY_bc0x5CDJ8r3tpKn=BVI(rV07E1?B32cg3 z04fOzEJtjdU_SBC%HJ*vbA0p&reJ|9_)~HC$8DVAL!p7I>VO^-<&oeA?n>vLj*a(8 zAo|1sLH@2Dc<#vt5N~m(4H6iy_#(hoU#?Ue-8rmW;YV}t9RMfS(LMVV%B@#gqxUMh z;nHJRzw-xh{Ox}hN8kIu#K|}P7`6|+2evqia&nAv{Tj-(S70};!Pdu)Q&&)CJxb?W zPc=H{hdZ^#K)m54cK&ys^bw$#z5?kO(<6zR72F=m1%IrysUdkg8bt-hBGpN~d6h;~ zN5lC=4Jo1_)t`rkL9Z*=H#cd7-8om!K8Wp`z6ayww*g!DiJhaD#@Ds79Dygx zI+>0wX{3#GU_lGxqHqDMIzu~YVTkR+F~ZRV15;|c3z}Nn`r8q<6zsi61`b!naj+6f2^^EsdC)HQF6bfT&^)d3^*EM$ zUO=M}e_L#p#Yr`Z14!@6@KHW`?-dhqjQi{d8 zvwjX+?W1gt(ZBKxx|=VeJHCTwDSQoA&tAp$@%Lc;&hNwVd;d7rZ~p;o9)CZ^OK(9v zxQehmxY&-gWB$cPVmf|}=)X*2v(#z>RYmkPm@pG0-JU9stYPI^C)U}*qoeD@{ zl1;wmxWX$t)|cbJUTq;iRpL^5AI0e^y3GxAM=zlan<<>H)767Z*gpC`jOX9r#>K#6 z$jyoDES1(of&Nk6>62v-lfS9aJw;=}r9e*QvcYP82$^s?dn4ZrwUmazvXS)bkDn2v zbiNZTxxkeOl>{*2=tbqHCyg0}v1BblaqJZ(a!#O8e98u(aZ!Of^e~$P-Qsn0VcF}) z-8U}e<_p-x2VoZ<0{XdI?iyYz>Rq)(XUOcymnL3?hut9NOsg2zTJOu93!^u@dLpuO zI_-lv23hzNzK39Ngd+nJj8O3EMaWF@w4RR16ko^m5{8Z=o;>WG$51Wv4I@l>5%p<9 zEjUeacvkJ7;yCV!M5MKrHOMqGl{q^t@MA;fIL9)rR(RuR0vD-~s18DA2*YA638A!+ z8o}a)U}$AlHohj2S5wbsu*Cx1yvMwZn7{Nz%)k6w=x%Y*ps|3jlC$Lj>bVE8dHh>& z^6nqQt?&6uIQk=h8OI;^ah$yCN3g!~PHg5EFdnU8H*NwqZvxv5tS`W<0CS#aMgDAu zFQqcaNC4|5t&^EFLUFkrc>)?WA|1eK87HdjGrCq+`4#YPzqiE}^&b!UD;8ceafpq~ z!3valkFx5}AAJ@53!g<<-{CE(^L>nm4`N)LLmdFy4#2Q+ym<{f(EIdGY^Q~Xi{_1? z%+Ffd;Dg{R8Mx*h92sKa9Pa`zpTjZ_DIV_nhP=pdD~vY`-XZE1ey7Om(y9Jm zJ9po>ptF9CdiJtE-3&JJR6&sAG{j8-Y!9ZDm=#_YycV1kS8|M!M7cTRAN|TD<=8@m zv)&bd3io#HmCNjO5fr5jNGi!FaFLDz+478#9em}}aFU`DbpbcPBEhZ;8noWA35RHS zQp!_?LdGxWx{GR~YuGBDNh;Q~e2u2^Z}`a9J^b;bwtJwTp)6+T<^}WTKacrSzvee^ z*1@MErdZxlXR{^h-dT(nAH(*MZ^Gs+--GqLei)l~{vbAQ`(CWy_#N0h{BCTnycNUY zL#X|skL+zXuyL54)LJ-xFL}w;7se-PoA}C$7tMI{W*q0YR##0%oac7=ahF_0e%YYT zdByLkD)m^EJACFn%Bn|y>p9Gx|6Oz^H(JCy;H+Q3R_9=|Gca5DL9W}aFEZr09Dvg$ z8$yvDJ4MUEVn>UZ({ObXBETQ-&}73U(Z>+=GO=wYhTH9(bWDrWWThDxr;DMe3EAeI zjfjR!GJ^OWarC7!f^vTvHlU;U*YbwCJ{kR$X&QGjNoWf0DVy{pnL`w5)X194c%4oGpB zk@5>GjM$jxP^@iF3uoX^Dj&@&8=69q26U=0JQ)~_CSxM9PGyadqOx&*dtwkxm8RLwsYL<5=hW7|uU}?Gx|C_FMiaHsAdh zaPmj~Q=Gi-Ph<1Qdoc88QD1lkxPAjTJ_fda*%nFx`Wc@-)>!CVlE!Ns5d(XJ&^ip# zssL4Mceth6!?^|nUNH{CXG@K;q@Hz?uv+}^Ceg>=- z=x#ob{<)`6?x=C$^=#b?)-V11gt|c4RA3OVCjJ%fH5u3GObozv16U$2O;YzEuWXd_ zVO@;xpQ&M1)&axeXiZtrJ>q6uH0tMpevnp($aI~N^noW#eqQeq&{jjD1>;-ZDMWmI z&?a<-Hl=G&rQtz-CBD*=A-@J-I{?WR8d zt|SNzQi>7j8^97h=Y|`q&#T*f0o&U{x4wb?`OjhY#oxs2%fE$keEk$9UtQ-0g00S= zo_zr0gKx(0*t@ZP^LJqLmJeX_<_}=~hVQ`UvG-v(^9U*yeyi(t0~`EgNz~C#T+B?G zh?S}}>cV@g4A`j}!)-_qaXo!95fgc7Kr0&t`f#~+V0eDP8-l}3)c}=|2U^WLbn9#A zu0MmaJr>YA5SM%4VhlO|q>K**kH_>bR?lGm^Aw$s?2 z85azT?Yn?9*-_i-uGR&`^Lq@aUQ&%`P}iiMzL*-0u(o&{Rsh_x?nGcOF&w)zY_uQ zRM9XhEaf%vO2!70PI#IEzw07@S>mTg4ZQJFV=d({Q39@QC%79zlAB^sgJS7Cf?YU- zRUAkZmq7hbE(gmw&7I0nF3@X3HxVj-8BV*!SJ_14@C$E6oRC{ck*bprPcyC8FzBkD zio%|LSAjC0qbz#NUik{v#T;FZ_J#_hEbK%^2rrP{#t>Y`kF{M{a5K`gEFzprSK#Qe%gBNxw3%g_gg#;o-;k zqw^C+wbKHt(>j`)Lo~|=!Jf2H3&(#ur7uQTb{>weEuum!^MI%rSOlQhYXpcVG`6eEv9pyZxe2Wb9Q)ut?{ z{Cz|vm9aM3xq$)n+X3BrgKjoQ+1o?6U1N6bSiV8qEU}ifPN0^7r< z`rRJO1+ce3XUAB4;p13*`sXqK!pG6S^rhEs1jAblefV_A>Hzi3RgC8!!g%>j*uL@o z*uLTY81^oq*23wEI!PO};Bu2j8|RT=_i$<0Ay*QF6WDVe;M*%Gt1xsN`gT(L2u2ej zH5!e#R62PDGBlb)zEM$ZKsOwt497eQ{mwa?tx)$a!e$4+sGB=S;?!s*I{M>;DdjW^ zB1D5}l0U!&+I;ssS`?Jic}!ePb+mXg9zC|d8PbtE4WYm(q->G}AtYlocaEmz(fjU` zi=6xm4>sHxS@j>r(NpFBf2;7)uCMlNlEI*G_R>2mD3!gdqMlXD#~|gd#-a625C%p|8)Z}Z zya2>m{y@=QmB>o8YCR{X5rT$MRCq#%%6Os&+UP@T;5@z5PpBc4Cv~PA4!0 zVO@v1SO91C(DfV4Kld>#Kk?I;|Mo}FfAvXVcolC={dacaiy7+PSqyLZR&3w;0gU@s zP;2jeSTMbEo%Q8KCY>TcEx+m+K`Yf`0N@V*6dM5B@Y%NMz3L-FfZu^qOF@mEI=oKJ z7wLH;6Py6(jiXF1FP^rP5gj%t!x6ge5lX!i#zo89`Z?<25Z13?n2|NKsFTqPm4_Z6 zwvCDfotAB+$YoAxo$liB#*b=DMeBBAXWRA0s_%f#D|mAKc`Jz&T$XPaic*MQV8Gp7 zs@kG5Fuw%HkDxEyIV7D#TmxqfMHLaOk)(7y^s2OJ;6yUv6HW+eRJX$GW_1BJ+iUUe zyNSDRTQ1nkNq-k63!>)JZJlgMz6Qe4hgwVuxT^rV1? z&hrK+9sNW{p#zu)pVq=MT1HHbAK^vb5jyz=l7J-~1L7nil`t1V8hes7McR|fECZtI zQl&P+I!R-bcYkx;+ImVplEW`e^&|wno*XlM%K$U5h#r#us!Ys-`Ao~5UB;MGNGy=x zIc_XN-a8bXtDt9tQs^BmdiDm6j;Ojat>ws=Rcl;u{o6n<+cf#On)BwD}w&ekE_6pD~(4B1j zA~W$^;%l)^=E;HxZr@S9L_@_R-6acd2qb*eP#2|VJTx8UbZiUQqlPECrzB&sq3GD? zQZ)iAglEn-1r0~Q((&KKNxE9)iz13ZyB#NEcZB7SGAW^Xr;xniBdIiY%M9q3uitYn zUI*^Jak1;dxOf;=X24k8j-_Dv8inFYO*;uvBM9sWAa^$)8S(xoc2=sg;HlV}uHewG z-$dCo3?x0CzoCsNL@y;pC2pR=8$Dn5Ae@McpsFXIVN4o*+s%Mc+^8_F8EI$`S1GXy z?$dWjW}KH#>onB(pK^t3S2Vg)m|kTt*svD8g6w6 zJO2PmzeG9NIBx_miKdNMLb-8m;_pmULtBqRN3GGyPXi%jz$>XixAe}@A;ocfj32ri zM)H_o3y=(bXOnC|wme#T$*mNF_$B!}*!B)La9qy0_5_rjSim;T&vEj#7zIAkV&I5J z;o6sOe*f6--^1NEE_R&F7O3Yhqn^0{pr8y~AzUpOubTOYMCltV8YUKcECv+ArzwsQ z$|R#Mw-go$eF&)MZES#Icrt{CpG;EV!ZP- zsB(Ga+{4S_5IfSKrW;M&IAcT3ybJPzJrwJN&@E2M!n$g0Td-E$m zNsX41-h6~;r_Kst2F;})BSWW^45aC{T;b-*jldc_4Y#VW)lkO4w{p&U)Pn=qrOPOD zVE)`wSbgGWaPTkx7M8#Db13UuulhYCzdvU{9Z>4f7B*|qs_G4Dc~WnYG;r1=k53-2 z!|;zDZw1CJ%65yg8DL|F+8WJ89!zZHPl(sZZ{lGyZo|xBGGKL?A?s8lN|J|+7g#?SW1p*xhH4d7*?Y*6ncx5% z`83v#*2~1mf%wQ@qrApHF;d7l(u1HuT9^=UT%7qlJ$0Q90Yvem(9M8u-1;J3%>Cii z%6)fxci*_!b@Msw>_yarb8e}Q6=n1zj*Av<0&v#TxfbSscZUC@2Hn7*w|>>YM^}LW z)<7x0?~0I=Yska@pS?f-zU(;e1Hn(^UEcCtYp+6KUx|I=P6}K^QIup^YFW1CblWX= zTeADub38L=rvHmMbEey;$35<4#_sm9$7+k+YKgKaQItq<14$4Bu@ESL*sBVK+P~X- z@7|j+Kg5!GUlmB8>RSLvexvGs-(7NvjEsnkjNFWoU8r-fKn_Xh{jVztt@8OuxzL#o zw=gVuT0?+dkIBLrRlI=O_{ujovMhothqRlX=ygh+iL4yfbMbVcD+oe1q0GQ(ov=wC zBn?T&+A1xRmD7g1a>syGQ`Y;E_bCUh5?7@5EI_hnLXW5#Ny8D$?aRV*UDTapN8pte zP!&*~J%;+oH!=F!zeWA@S5TaO4YYn*R+DtCW%kYk%WQgTr{YQu+90zM&VjtQn0lf8 z?>(+I1H&FO`cc%gH<}3M3f*uox?R_!J#;79eYc?<9YTx?;Pn>RXn?Jm8W#qVx3Xvg zg5$_A9+st`Tm;#D6dj5)ucCb8M{)%F6@a+78|}f{&<$3>lTJJ|$}EPi^ON$AGN62S zy3f%#$q50F=E`fP(5Hpax58Y@G}^dc(rvB`wm3RLS#+470ov7vaB?JF&vBpMm5FF%P(;vTQ5lx zmS#v*UKZ9oIPNJ>oM1h=kd@nzuxFBY@+8Rh4#fg|(;S(zl+5`{%06{?GI2r{V<9%M|=6b zlR#aIuyzvR{BeLMKtXbD3QC_`XG^iIjH1O;qb7>oj97R*0R6FYCvDdOO(#4v-izsN zzlg2-e;ZqO{tBjdeiqHWpF?}Y`_U~OLhNe9Q|rKFCUqGyqt=HblN@>PHjqcz zJFKb>^Z7w~nI{pX`YGx#RTR34F0f@fvVFVhx72W_i*=G_)-{_eYlf3om2DDemwgm3 z3*1;R?@o#@Z&fzubSbnGMPS*BrfI+th{XsoQzqB`wtK=-4 zxqcO26}-7n3Ue8Fd92{31o~Po*L{SPzBL;#vq9rq8eYEn$QoAflG3sGJ?t}Lr#C4n z{k0(SD$z-v?XRR|`O3@w(#d2DUNq}0vMJYG7iI}r{;b4u#5@lHY4Ae=ppaQanHHv!6!dUsCKoParX zFQhuO{1)DOlTM=mw9=5pY7yulC3MS&!Q~>*iZN}R-{WBe zEl)9fR_?~=F7zc60NSAu0cf=s_y znrta~HzVcID_<5TeE^X2P+sP&h(;R!WBEen12qj01G;KSSBYf#?Z5@FV_eLG3J!+~ zT{%RgQpP$XBL?Ylx&YX6Qo#D*fcQF$of9`Jvx@g2d&f}snpOoP^@7!EkS&jm;Z;bD zwJDpUU@urF(Ls$2Qv~`siG=n>^vbi4zMLI_tznUE_@!2UD$ZPQU(0L29w*T&^>{RA zoz-tlnd=Jkrg(;=WmAM@l2~fseRx3#s+nd(6^yiphU9?2h4!*_&kmy*YmY2bno>U7 zl~B?*14NrCA+(i&;SEF7hRs%J%1QQ0Pesq7!^ivc%_$6D z{1z6z_OG${AO0H*9{(cBW6vUNt!ql}05nsCW6z;{Dxk0zfE=K?ra(wyHLCkLW0Jc8-J7{iv5L^$z zQwGj%ft#+k??og62Q{{Ru7yqH405zKn zh=Y~PEBao99#P*F*fB0H21MYpL>w-H%YnEfBYR`$3NS@bM%Knkg{~hWtMB=b^UzCs zF0f0b$%F=WVMafWKY`twOYTS1bR0}Rg#(8`Ai zWZwpv)JJkW_h1NKTmbPD)%jznU;6PTrFG@pOS2ABj`H#&AyMX?4g|><}nq_p)V=_qg%)$We{+rPpz6)_-k9c>8 zWUq+9GTJ@Yqq*_@Xs^2$?Nzsd2g|@#BQi}$yWo1}l99X-j@N$UZny-G5GNnioG(%kVW{);m9uhK3gH`sz2yy8! zc(^OK(B7kv)8n0o9pmE7psInDRq%L07%O%lweGDKC88|gVyz9Q$Vet2rg*ebm0yLZ zyT7U4r`{iPBPM}>ue_j4y3~$fO()u~&R;M=Hp7RYh88po8ZMt z4K+-OX#j1!Wv9j5z1?5E;AJ9qqs?qL31WtY1+=6jO^Z)POREoC+i%8%(ll>4yewdZ zu9KAyZItomdJJCL1zuSN#wDuPpTg+T{|yU&{x7ib7yms5kNzpjm!AM_odb1kR=#b7 zt_7Vx4V-%eKnv8R>~bK?$SiN|yD@6=CW!1Y1Auz{NSEgt|7jgqn7kgu z$TGW3%=!!D6RZ=XRUg_}I*=m?diI=WWJ{D4WgkMB2k|B);j@ZKeB-YzMHOpBN8V?i z*Tj3I9-l(^jUdbFBO}@n-0F3DrpU!`d#`}i*}Dfj#>JZe4~B@l_JJ3dwAX0INM|Z! z{wCKgB9&PMoA_n2)O%37nk|YoRPzjCVxUsd|0IG$=n0;uFo%0G1gz1uZziPamE6z2 zya;~zqunbiKo&hqX1;`;Pp>DEl_S0KuqkA2aHQ`7^3q7tFG~)ZrYmp_Pxft&t~q#i zsb2FBZmR&9@u1;IO5%n_4?mA2;r+}Dh*4J5Ks^9e1&VeJ<@wi8pLiPe%a5Xd{+p3UkjXuM6;TLqx)Rr^3Idpm}=!Yx3xzl^)f2jEq>05tj~u zhpSmfVh1h;JI2ME01rlpdk^S-7dl&5k17w8X0J;_AVT48L!<_df-RR+IR&&=kvs+x zG-GVG7Dz8gO4Womy16R0c33R)tOd(Icslm1)o)U$$+=K^6y3g@InAusJQ&uy*B*&k z`zn`GCRT5Uzew7_yb0zN0)vD0##rg(n=57IwSw5Jc2dPfI^TpfPl)?l@C~x5Sw=G< zk5!iSz;yM8Z4DeXU(dd8D0+bmU&CF06V_TT#nn6*L5&V%UL%V|mbBX;`rhZ5L~)hd zUMwL1i;KYS6=2r_Lb-+V^`}ui_9v*m@ZX^P#vh=3P2@gxR`m z#a+}uIg(urwWfe{E3{3tlvPNit7y_Ei<8_9^G*g+>Y1jt?v?G~t=T!A4c!3EU-7%s?M zlh_Ik^pkYpg+bDaDf!czGi1D}9y;0SSL#AGuFEE;>m`4UkLL^;s}mN3LP%t^hu5cg zA1oRHc351`bXHvj#Z|o=l9W6PpLm3Xi=~@;IVjb=FIlQP@FuWhT)Y_!Mu>Y3iMu)KY@|@jWHDV{nS^Mb&CK1VqG>YV zErf=#cX@xpBV>7aT+OSOcXlP2SCG5ZRHb(b`k|A7WNCS3BH+EWG+-}?Dw<3eQB1SK z84#h*G=;r$T#TNXp(BuJC2_LLfF+#KNDKwhPp}DbO2<5EFPS{uJV5?}(XS(qoYk?v z)Avvs>M%&3mgp-;*xnv? z*CM>}63UmKK)H1Wg?N+uT-Kw5RH#&e8Nl{yJec!%8j57nQM0xMPdju=htM9p4RN&M z4VLHJLjZDeYCT4`xF7Ax)nE*Pt(mm7MF9@Mmo76%`Oyp?@m$I>OMoMxizIe!*MTN$ zpvjsJjch;gXpFeD3X}s-r=<)=H@hq_dVG@-$)C+)%RvM5(zzH&T&Wu6;7nghy_sBO zbzv5w!@LJ2f6Bw^eWw4kYD5k!3?U)SRzA5r%p5YNR>boG6vCkT>2NF4_5pGQM1Jt*pc5E(&@ z3{iSY`%aGpZx}R-zzpCn0A&pzqvLoM(c|1p;`qh`72JRE`ij^#5p zRUb-S>XIP&ATn;oJ&R@*IW)sisYtSV2&8%|0%%DL_i`YHyAx~&E(SZs#hU=v1H_em zh@&OMs1tgen>ZN}csVSlhUyVJhhD}?s~pcnAIUQ*Ny$>bDR={FNjm6@jCMjt+nXUr zB{OQ2_r$ZN-ifXQtxrG=0ZV%jSN0<=?n4}mE$PdHu0=R?9Obbe$!e6*NVdoZln7!x ziTl~=OO~e!+Cnokyaexdm_vIW|hAkqlk_yD@)s}UFXgNwSy58DTNu8=AbTQVyT zeSRb4yrj4||0n*mhS}N4)AK0uOqy!WpXM>s`jlbcIoT)5mZh7tr+)&bL&Sj2jUd5C zJ6f*q^1q}*S0TxO>mLPwulE|y4Vjdf2Gu(Eu-Q`F$l#X1T!D)b5GoC`18)X9#>JaK zH2^Q~K^!fjixFLHlUR`aA;`*xbe4oEbsLX`2r#o42@qj~jjaRl(*n#@OmM?OqD${o z!l;1ey$tgvSi_RLbxp8bQTGMTZjtpMd~LfMBT3+`Py`cLYhXoKt#M_w`lT%L&yutT zypM~m$2S}#j4K#NBP&CcyewVAQ5vyKIrUOh+!g$-RjMEeqq8Zs{4%hzNDnfREG3}$ zc#axd%V9lFf_OGO1M>)(k~19a1W;GJ8b|pmdCVj)p}B1QL#Nk)2@sbLAnrPZZfT#K zxOpkyidP|a2xs0vIPofoJ7BZ`E=nzJc0idENzUX+UM1rL*0M+#yC@X8DnnNhwG3(i z>Pp1L18Dc$fH=I!Dv^r<$;8g9@0DZWTLRiv=Uzy@A*wfsbr`DCGcG7-y|kds4TSYg z#IT5V=^C{AZbP^Gx+`}4HgzqinE>1-?@B1#<7sjv+?JYX=LeR1nQxT%QM_Nue|mm~ zt*U@Yjml9n)!FAC5V0(l@i_~+@+XiiQgb;%GTIb!Z)Ec9A=|{ugf1D&;vtc|1-G<^ zil%CbTja!7P6y>HrA3-MXWxw`lAf@;bS}9K;8@Ah;810>+<}Y1j&boOAlrZs5z7H0 z2c2XjZclLwA|3MME=m(#6?lkJVn{;^<6pfY+wdk6>Yie-pI%(wbxGriWH_7KxV*nn zJTzm$Loy{5BumQPJ9xeqU?t&PVJPz2NQlzX2~!>?YcQdRxDad3mi2rCHlH@oGpZ!G z;@;bEDKCzcH_uQzf~r4NX|hfzgM9Gvsm4e6dP6EHINMENAanrBdJ!*|F;8KeqrM@%G0l)n4Uuj5j?07 z>w(l!+h!+XYu(vUm!48eBt2FjE3<`n_7;N~MJdBR8xzFQ3feuB!&9O9~; zpq$ZW+kkZsk?E!`BepuQ+Kyg+^KSJxF!SQc{E-TsMh%c? z5wqbskEMBNqizPK4R6TA(qzO(J#evC21_e9$}?I^Y$Ra;T))_BE!Bk^w)O7%9Xz>b zpl!i1q6@Wb``sIE+krQO9pmC+z$^k#4P+x51aOQ9u@PYig$hHyr-E3+ViD)Ekp$A) zqs)jP*!&4?=r3wunD}TuJ-41VG$xPQ!g-HcWBNP;6Lwu|-ZMl@@#OkPK@^T$DcyAS z6q~KGU|ZFo4ZEgqA#L(vubu8?occ>|3R#&2Y0aZI^rP>Mz!qM?%hOZ7iB?t@MnhAb zMo)$qlj)y$U1WIWf{dI-Zd{nbsyEmyU<>J3*zERj?P;G*_dh!9*ktiP6p7lpjP*>A%F`4*FlU7VxVb&jZN^{6mgx< zE?H!O${i4cR7tFRfGRt%c$GZ9C1#Yg@TzFdrqFZ}Zi1f_R`a&azxgFh8Zo>Xp(Mn1pICQOrN9vMK1I9dV^#(l-N18)jD#>GznE-J+FqD)eo zO=bQAmAW&ZhmyaU0H(&I?Q$o~7uu*>;-)&} zGiSYS6TM8YYc}F?h8q{DG0=Q+Aybcr{!zoi$|P69C(l(CiqZ;ZM0mXHorX@7uz3p> z-@a!FSUTC4J~(0*0Q(=)Uz(SW5j#DQC(iO<@$7X5UXMOE#4e?Yzf0)lD5m?&z=^7` zO~J+p-fGc>Ma-_f8|~Haler1OCR<(xa0Imt%GaJn{p42>HckQyLr@WXC)=FZRznP7 zuzAD7Kzi9)b|t<&MzEX^yVaswxf;z44h0bvBRB*T{lA;yT< zwBW57;)Kz)12okhOjoYM?AC`c{qWz$?Do%~x$0iTv940NLO|UVVR{~6a!!`Ia;GQF z8tUx<0i%kYku8!Mif>NlOV?p`?c zZfSJCck93mPu4U%OfHj&HkOF|$P35ELX#}phGTmbi3$<-eGH!My`aFhMCtW)vYK^39L&5 zqYhn&hRr)usUE#N*>?@E+S0SO61g$w!@UVhPa_1N2=4Xj1}kXx-h|n$A4PNRU9!A- z8-OP3vdibzS#X?!%Mv^oOEu0~#7-u_IT)WA9c(GCdDlQntG)rtfe@qMnrNMuXDO_Hpr{2T8{bSYtcm z>5R((;VWe=^-?06UyyksjqiYD*duigjITuo1sBs#5-#I;RvdJBtLp&8nV}PZP1a1o zux=ig^Nf30R6BY;8J3#9iCfA`CJc-03X%*>vte*p0IyyLUOp&wume94c8rUk06ba* zAGjL4unf!^*(fKNglHI*2LXF<$)0YXRwWP2q3(GZ9({u#Pa}aL(=S^p;|1ueg7PN|nT3EWx<0Dup9GWqa=Ma4 z&N5}s$MLr;6_13Efw^8KVDEcx+jY%^rTqRy>E*wcb6(VW+!T4iUkzNgZkO%_(KcW% z(C)qt&EdPyTze0?z1LlOV>}1p{2M4-bW1SmvsRUuYGX&BlL+^L~x#YyN1eatJ) zRxT)gayejO;Hm({h_Jp1phCBL0C8a#xE^1!lINmCxBmvT*WH7-dO+q@aX{n>EmkqB zuEJ#DCQJ{10JFP(1+#m81?}CRMR(v9a5cK*eBUk<=U+$l>SG9-C*_3MQcjsg)UC^v zR7UGwgXx^?lvf6kuxvdNW>8LRiM&H4Z^oVv!p$MegB+C-DTyB$I$$KPvWsQ(E$mTY;^nBk5dvCEh zr;(C@(*94erHZL%XA`_285ABpB;P@&*JdoiCPBYD=oVJB@nprOC7;>5bAX}?L z@yJ5jo!rd5BOMEFTcL3kM4Gz}aczn=j?vuy5Sn{G1zy@-_kDQvSyT^y9>t005ymyB z433+WLCWpkI;kkRj6QDs$-89uN&ShzM4+MswGmj~K(}%L(|dja-M*{)2)%6x;K3rg zm8;NPa|dSE--~YF&4|}LfcB$*2i<4?A>yz6W5oMDhq!teyiFU9y}GnN?nxKf>BpuQOYH=6mg^WRTTe?m19Aem{;CBypjEkQDys(0J_05ROdk|+0&~_%XnYAmjW9^y? zsmPlIwHt$;aLKLf;9j7t#Z$3O8X(DDR#@x9%?Jfp6x!)`(W#LF4^b(^{ z-d|AXfS1gaZvxf2*~J!o{<|7w5?}XJDFV=SK+~Zc?n1lwMl{#ogYNLHG6`)PfZ7>o z>l}&`FQ9zxJ190zfyN_Q$)OYB0Eofq2KRh9C4_4BL`)zv;ADazNE?kV0+R;a$^p!7 z`v|%{mpGBrfCyX;5Epi%IeaH(H+=-{HSb4z-3QUV?;&(|d;;gUQq3titz~~jQ4;OirKyy)Cb721?X%qULi4@#0RsLl;0{-VC=!>o?4~4$?AbC_+D7l&h&M#>l=7O_Cn+k)Hk;=liKhmN1z+ELWKInVNfZ&X zt)68L1M4AFsRa3DlSWyV&1pfzkkrO+j^3iUtejepMqkI-@YU~9aIJ7}5>g4W^w2S4 zWH}F`DuJ>D6$DHsz?9M4@BpUwej45Gt7LwF=6AV3lk+G~y@>MMF_e>YlIOw_D5!VA zcC+m9p4O*P)W*-1h7u&JDbk^xLXT_jI-t>Qx0eo~x#0oC<%0>S%K)y%=nmbD=GI@r z?2cbSbJNGs?YO{aWf zGG{CbxZK;XNnvmEDj-{t0prkgYhKZ4xfN&T{G=I^20L9n?6o{f5l;&&xEk(W3=5|Zf`(;m-*rgDoAJ508b&@O#pKPd zzq=TzEo05s6YtY25o`W^KhItUeMA8(T7K{K+cO{f5#PkK!BAzVVSCtFdF`3hV-Z`> zWD1T2+TkuVhu??xy1T&(b}aOT`MhmlMmT*8@7VAX-D&a7kjhoWU~4cv7D2 zQp4WAC*2^8x}um*^0a)jqy)0}Y|m249$x;NrNxS)#mk=!PxLz@DeXBhk%>|ER#D>u z#XxrEd^dRGrx13Gi;F?dJfQ&BBXCg)v&IhG=>|chf|WSf8QMFj-c!iFBb!HHJzbR( zUmvbt(rj%NG?SN}fF{8cA?DOm)S(-D??(r#p+R6j`7z;^cY9Ji-z&q)rT7R^T0Wg; zVx|a8u66fjk!k4}Z0Sf`kn{tvb1RRY~{9?Ad`jE_@rVgor%O7vbhCDiMX;4JYEsyu7`_l3n(vhD6iZun{OE+sB2N2 zcn;NLUqE^KInc@oG?WI75oNU+0SKh3Aq_to9gWPrhTrIF{NOB+cwHQGX7paH;g-18 z@$qWQ#900la&$uRVAFW zpACl?0c`kgu48~sc1CR*^*)wzp2$zlkjT3a+bE?!qd?M&;-WwoN|m=xCv67VT+4Pz zB=|32GHeRegh=1{uNe@+!8BoDpIm5>L>@-b=e z<(!s+rtlUb1NAys{*tfJMkiURBJp(G;PFJ#PmXIA#3!%Wv)?HNE`q0-1)j`Y8W(MF zJaFm-NqICiOF#eSMu~h+shUC;1IXUkH-_?HkaHWj2tciyDa{&mO+*_j%&xivvpXI_ zxA$6IO|dPri)uSqN7uRfw0p`fz>N=X z8^rZ3wBtRP-u^MP2XAyaxoq${)r>`W=K{U6P^_Os{qlEF9e)z##xW30WOK4I$kyjw z)U!{7L~;g-(x0u7h0{majBF-$st6;y#U--P8o*;`&sMMfZ#~1s!KOT0B zi?;|I0=lX~EC50aCPpL@(8*8@SIt!Efsu9>ulYItesLoI!A~!%( zVoZ=s1}(4(oAi`5UzgJ??eyq9gn%Hz=#7Ia3h$vvc-tSs;-&`QQ%;SlP4@Fc+tMs< z_lj74mWH{2rOP3|N)YoFxkAdb)Kin}U-~Epj(A{l4}y_Pl&z$vM6pA&^t*5A%~Ce2 zPcOE{C8T*5wp%IKmSL))1=D`Q4>HcJlOZ#M6GXD*a1mslNL7G`wV=2)Mb{9fHCiqkJJzyYB7}{zC|`XN)#;Z}(iEW%z-SBjf=JZM) zJd;}wXWmjZ+|w?)5Yk2- zwUs7)AVi;}>Lf9ISkuVMWr6Iw;w@kSrGa8HWuiD~cr`B)k+U8)655)PXsx5owq(V_$9`MpS&Wx2JUhe{ z_1grNa}~m=qbQ&JI*Q}ZfrbNMFc5E@8IFpu)Sq&Q@|W2QULZ?4)AeZxNy)+ym`%YQ z5UT}r3wzM5UWGVX?xpdw0yJAkdFpvouRn$I^`{Uv-vCAxP?brJ%|K^8traROxdmr+ zJZHZtNA+LM^F(68{1z}XnB=~%z!Yp#KQ*dtE|sNg6E!*aDrnkC4lLuWaR)gjUIs}} zqiY!Dzto(W&NUn}C2ORzvh?iTl#k2}(Y(tFC@VLbcHphS4z=DYR26u0B z6(UOM$bK7{;sPX|cWp!jp=EbtfP&0s_Xai1sYtzmQ~)WLjm--V`c{WFvMX0sZrr4I zMovjn{-F0{7-OtMhj-akVIQc5d$Nw6|(dU5C z2viSM`OcNyf0g>SrE^vCu%(QkB(chX#?iy5X; zfl`Gk`)Xk1cmX7Oaej_cmZkBlv4rE6835CBq+Xi7yjlv93itFQvF&f8 zNN4QX3U#2Z8F3pwh2q3aFa12 z%eaj1^9f6=%TzN9AQM<-?Zv3V0jqn`F)j*mq&C6W^4TwZ(}Q}WHW(GoN?o~I`z zv_fcuYB*auI-erT(;HIt8dz^8rKrOp@B;U6_p}lTwCsvwrpz2an^R%M383o0LoqBsL6507 z+0=OEANF6?A1e7>dDG1aWPs1FAv38S6jo|WBxLk4gF72b$#QYN25FrXOZ&BYF6$H za_W1{eSs4P@^U(o<%$?b4IYYgVpHi8s{pVD)00WYpK+D0S>2 z?m9(2+uRwGJuuX;koqK~RVs2uOtRAFxzNK>+FM4962ZZY63Naw8@Y^#u_H3CbCSdw znPVygLrm|@ATqm1%POB$8^wf&M{XHF1uX6c7I*C!7jF}GjElDlqXqEZgK|LAtN|FH zBIrIV`9@H}mok)Kid6+qTd_BI&fzJ+?G+8oA+ioL*f-V8fmrt@O z6BD=uB5e8_B4As5y9vNxmL970NUS)LR#GL_i-E|my#ZJiUzWePBDIXR@s}nnwo6hn zDGf=}F4I?O<%|&5C)Uavz{+CE$_zD6%HCh3d`fE%t2rm{Lf);Muh?8c+ARZ$pM4{p zK-;S?C>_cGPy|i4Kx^lLGw0Cmxei;u^!G5k>*I2a`Zk>zVnEFl#hIfh-gpt=%qyT~ z4Okij!vUykbe|V1pY3mv%IOuB_XaJDH;_V1GTIgZ0)x95VrCk5e9pEzuMvkz6ye{O0pDv{Vt=Kl!FED9=uAoDJsF$rQO|ozk+FK_5vP zT}A{=Hi2n_h#Kuxw_)};3=>$0tOYRZ9!e9 zA?Jv70o~MFHAf7up*$>+ylAFiCbY|Y(XH-Jb1iat`Dp}JZ^hO*6lY#R_40QxIPzB* z9QiV;6HfqD3tkw429?ZRvY}BO9+1*2oAeyrwM3$H)#A);{vQ5 zBgxx44qXeNK(}}Zaq*yRuC@bj8Fq||w+Otrig@^D@Zv6XO$4{HnU<`7&i4~Y;w=hA z#!NXH)0?7DCMJk**v3&bFFYo_`b*NoBcz7h=WnD4vP4$g5Lp@`K&FTUa_y3hO-cqy z3@vX%&sM&$r0MEN%bSKy4DXabbj;Ly>!LoiCq+Ofab*ZYL_etoQ40MxmX0QB$|VB{ zm#veB;SN$d*+Dk$YF}soa4n_w}BXa}W&>9o#CP^d;ZfgrT zw}Ec)ASNIETbSMZX~bQJw(ZQ21T3D2b0<+e`elSCz6PoQtSkv#TRFRgBkQDNGxF?W zkj22~xfx(r%c0M!Gv<&)k>mw6`CkY+tbAaX|ktTSSbxbraPtT_Xd z7Y$=uhzl!TNV5w?%Yn=z;UbvvhT)M-rUdfzvv3f7LD~Uu8Pu|?0H%zyTkoLgla<4a zcpo~cVy2hOwy3aN0B#Y^`6kU@MWLM@ zwRc_i3K42&pvifJbH@=*zKC$8-P8>n?>SL&n{51y8 z{spSnpF}Zv0~iGG!dRB~7KPxH4`Jq)kx%hW!aGKp>skvqwTWnwXx z;NdRB;p(Dq)`LkSU?P};y00|9GAT9;a|PjBT_=11>2X7%=#S*XCYLOhiS-U-xJdGp zsOqj%+DP7vD7QLkP2Io%g5qfTKzkROs~Z;#!JBg&z44Pr*C`}4$$QF4DdvUkUyRfn zQ)J|_XM5}|b+zN1)krWM*vm?{@YY7b6dTGCT$Vzg=}bHpVG+|iAHwYJhtTf70dc&N z4Vi5p(AGN2r@oH*u|G$(c>?8t5Q;*OpLO6a`et!P;CX}5cQNF&(;@T_D(LW+M9~^8 z3h6D+X5d+iSS}zg>_xY@p9bi%wz7&V~epW&T)OlA^U5;+|}+3E^r@MMNKWwfKcXb;|o z=C%)^x#4ca<-Oo~ctJg07BI^^i*v7|eBt}3Ui>}^nt+x@dN7*w;t-+qwRt)h!y!!= zv;yX|Q0fa=0!jKrQr!?%MM_sa6x%T(xL?G2Q#JcjzYZ=!zYtEiuS81<2_ zp?dzCC|~+6%Hz+VIP)sP#%a)OQzoq1(AHZ8W`H}{6J+xYiZ`A|^~&R@pZf*|&wUMp z=O0G>(l<~adlW@;3N)^Og&}w(%ZHhDwF0NzC4hMu>siScrM(1~_jx1kjjzRV{?l~w zbVWaY^@#G|byWmr^)l20DOa z0WL@2^747{=M8qK^;UrbxF`|J60t0#2PdP+BAZb*Wa&d<{k$ilpXAS+Yy+7sVqY?$ z5&6{~JDWEm35N7MG`}dugLw^1o(-fSX8^W4r)+gC7P=W7kj74Nh4)N!+*e*n13{T# z<5M}bBo_!i09&4^G$DwFa(sz=Tt78d8ppJe5liC;eQke^zEVwolMI}8`ZhDRd~S$* z$YKg^OuDpAeJlj)ai+YbNK&rUv}*ksjWit&>JghXh-cQ(H6>=Zeh9M%Ka2MIdl7eC zb!GN@;0|H!1j^T+NA>y(DAwNqmPX*+tHNuY9+pK3cOymeVpxEF<7D)3gCnYkjAZzS zg3yUKX6SeU(>p$a**%{^T--H}5@~l*Ib0#iijWp)%4M|sZbb9IFQUEiK6HBygSX?T@p)hd z&9+cI`4v=8e+~8XkDypT3f{jPG#r2?EvW4fqO1@xx(l7W7A&b0hM+5@jJ^UwcLrAh zTm}$FaMK~4nqjuX?*i9j>8Tc#oQ7N!;814ur(Vmp0ooa;nIg0kP`icl)Q?cT z_BhJZFQYtr92ga##Tq;ufQPbw1wsL|tr%@OY~bQaAsd=V(w$3~;o&;OmXA}A>9bl9 ziR`jeUZQIG5da^qlK3K6lCS3ESxOkgA`Nd?7=4uIj44tYW;_H>OJ7S|VwFCVAIn$u z6SJQOLx&`VaqK82r(Hhq^9N)fITO04@ihmc+QwansaZsW@6=>TOh}P$Yy3l{QrQ zLXQ;5-$~;O9iw#-(KJ&pfHfRx78wFP;S>SS!l)Vws(?gDHGnHBdB^Ham3ETS5$>c1 zQo*!IVl|a(&sS7Pa!1Q@u#kol6t83usG4LghtY*4tgB^G+W1mey{uQ~1+l_sVaN-m zX`4|5Fe|OItW(;0YsqT5Z0SMAc$Hoh0FEutHQ@7W=xBi1J->+A?H@yX-96}bAC|o= zE_43DMIm+w>t`|is$YlTZI$wAbIARxMm2(AsenC!a(8#FsF5^p6q33^XjH zL2o;R$rLngL2V62jab)+gAuyXq8K*CQ1-MLju8iAa6OV?oFFtq(||YEKpSf)w$>14 z>j-fZ1y4}&1fgW0BGBRpyf_9I0Wrw_71Va1*y?-)O7VTO^jzR8a1B27UJP4E3{ zUS2NE(ms(HJeIb8aJdGu4|dO4!g(Ysh1@e(^-}<-ko*{kC5bmJHo$a-_S6is)w{6y ziT^9wtKXlp+JUzOS3q0+j6*d5j~7Mxb*;DqLm@8hpo+nTQ$>w|sFNmH--{rs%g;o{ z9hLrOUf6iipkk9{*&jXm2t z>s1CY>&l`K5X%Bws&{5GLtLAnT{?v3hWpXn^dQ>n?n1YEK;~Fn3Bv+F_2Ls4e&df& zzxo4|?Ky;sK!c&2cG_42Xhg{ftXKX7Z+o96*B-VNfFs2B6UZVO)c1MhIId;#ri<2~=CJ zpk99g)!8GcPyG<}>rY^C^f3%x{Vs;DdbJeEdH4PY#=V`@$4e;EA(2N&sNW*dUnD(1Ez=mq<%oOH1aZ&!cp#BvBOrPiveP_u(L|!65+~dte;`vdH^0T%T};mC*zc% z(i7Bml>p$!OPdTv?jISPl!DB0@SZqCIf#6#Fy}(50wRK|dq zHA1KmnustHrZ;i(^Dc=BnC-gpY5lRw1p%ySq{U&VkTv(6qF_7a`p#vhks#Ci!#JI2MOz>ab8 zc4281eDGRuJqBhn5zBh--bexNkuYyyYJ##C%JjpZ{8h~E`~|ev-Ho`iPd4q@jv4A1Jq(KDKSKT8|A6wfCu9Y~ zfWS*jGNH{p7En5AL*@o6Db0|oA+H`Mn^uiYuZ_%NbW}AkZ9r>VXm?+S*)1PLx9>W{ z(bDB_R1{m#Yy-vQEUK;3DB3Bg7y_Y|vXJbn!J&}6>KYi-@>>sq;RqOwK?@^baR@BS z#mhtR$`HIf2Cs~Pm9cDmwYUIU90LowJ$hAxsO;0ncSzR;(t7VkGn+fba5;0iav8V8 zgfTs;M3M(HRw4keue^Z{scsAx{ggJ(QatQ~Wu$3){5g=&cK(MZ@47*LtUF=o^mSy? zX;OqNC-W+5@gzyh#Asy%HGTTybfl)hP~$l%J0{jG?ExMwgBNzmaqBzqwqYAI*UuO5 z@^0`|H_Fa|GdpL2wbw38%^*aQ1}mr{3B9=wW{K;>FcXfDqdK3Sd7nUg?ybL}|qq+9N3} z5(Ot@@Q;~+!60?rM6ehagGv_WOedhzYrrcf(HyuHlTZH+X7_#)?bWvxEe}&66E@2V zCN4VN7;W8=w1~;N51!1$qdTE6Rv(!Lzu<9L2)U^mO7hUSz+1R8s zsK)dORHXdQ3=6+^;ZgUU1trpnNFto(EpadxK9Wa3(y^Y2H5OST3Na`wououmSp*3i zND;}53RWXP>?%_TW;CV52&x2FH>gqND`T(bvX$_5guHkW#26yB(;@S5oNT$ALYg-s z^fwYfU&*bik`zqB>b@oLS@hOaY5*iM`YW~v>)M&h)jGEfr~nT~Vq9!(g3hjiPOhW9 z>V4Syjo-)Y{!gLXdmVVReAx}`kAtv&8s)1`qk83O)UQ2*B2K`oyJcm>v<2Fz4WrW6 z+9YNGBtuO~D^hO^vig;}(k0p?X~Y<1?nOC7=pxFEH2?wacopsb8_`~U$F><$;oR$} zpZH7EFFp#YBWO_RLLAxjPEH)w;kwR-dbIjF-8iX@;5N#Rq+OJE4L}V84TD++wNcLh z=va;bh`JQh*`5FtDp&GSL`LbVSK=_^b)%&j+{*t@ymRK`sK!RtI1&JpZ8gA+rxUa5 zJ7G-0sppxHcNe6Y-T)v3Gs?A0rUPs$ND|IFanDP_bGa07!?_BC&b zXv8+%CV3jZ9@6X`$b0jc$k39+buSA8+%RGrz{B0(rM-HR(bU zX3t+T>nROE#ngx81y_TXvP--w4Mv*Sl^PlOo|NN7CWNt^d?;C3d_^&sR?u{;VQ@NH zI*x71$CX8Ju*@#2I*H6$lkDZ9%qK zmX|FnB#@MLsx)UMsVbeL!738~B1f5HQr4ihL$$sJgc|MYA+!f>LVNILF{&;b7~%XI zsGs@@%2&S+su?t_#VGC6;LVJSkQo*>FNoB@;7)fW?V=hJW>`c}6A>C&^&t~8)i}|) zN=g;=;+bJ4ylvm$jWK#se61 zmPO0SW*jN4i5c8P#I`^j?E)|E1DD&p&Hm2`>=+ks6Kq0ftOl|IBzEA~In$?xNE&t* zXX9(VT(OY$&@(GPh0|UMtK#zBQRX2~A$55Vk_g)YQmmQV#nRBqq%1{E)A9z?d*?c7 zD|T60@H|azK;_j7MvjPS1I5)OSd1>1ncy7{NsDc=Ad4{~o(#oH!`Qk##b1nG=G#5#nKm@De|dmdl)wz9;8W9%#=TK3P$MBzdsNF83(|xwZ0X{YnlR zSx`@+DvOpktLz#dU!+XXdP39)YRrJs zaExsGT_6tkA}$;NiXG$PQeelpc$>gg4IV8Z7BxC15x%ZdzD+{rZOeKErW-<&|H5nwtnF^F}v+S@OWAFvA9ye4BA>ldHhGHUi>}=&wdld+A+kH zCGeo~GLRW^YFOBu6Eb=#O(o5w^X*f1qx>X0ds0z?0EBJ|bP=(w(H^=3vwJ>+Ztpb- z&&vR6X9(*j5zfDkuyq>LO+i%!1TikeRj=oyXgS;vG@}S=WLP0tydB~(vtMh#q)`&m zC7vOukpWIUYa;b*r8qEIbed^+C%7c0mD6VGh{boHg_cR6ZvQQDkMcvJS*nz7tn(Ob!#;^WEOg{K)h|Bwc?LOIb z9+*L~L;2bfjKBPEFnIQxz_>nu$*vXHY%$SE!%;DvG#{Fen9=s6!f^48K`J zGGD`T$W~T%`=pZr8Oo<#Oi7`~TS9K-3nW8V<;jLwt8MN&q2~_EGyKz3$LCs@r&ou@NQNzm8PuvQpafS7;CkV*c8dLZ zh8^SL?E>irNc8}5FciUydiFxdw$)TY$c<;`f2a%~6Bz%I5A1(ZSbIULU_5}QpJhNA zP#+u*Pb(8V*INDe7QEjpNnpkfw2>7d7qDN`S^mbN*c(d4NV#076cj_j%Nz8p%sD-z z#ELw$5;VAHl9gAlbS{XdlqF#Z<@YH+D}b%lx8osXVqn(-ZMB5v;4PTl`XNjn_$->6 z?%STFmv0IzyKiouL;2cssE>RX^-~X{IQ0UsFaVE+pis&#oLx4~t+dQ3DM~pdiyj>n zvS-%s9OT4P2Fs3?>sx4-4`6!7FQD6hgB(n@9UByJ1Z|#0@xu2|zVZVE%z(O*+S1X9 zR9&e#7r4m1x3$U_9ws*g@?S|@SkQXsc{(g%ZMB!i!dzQxVc-*-J%I~y1j8Fjla5}w z)QGXlut}Fa(7H?rXd`X;+V^=#2rC}?kko;STpypjY$3Ya~t}fXV@_=-Zl_G0kp7yu(}FVB@kP2pDNe0 z_n;Hc%P@f2`_}tOV%Y=tjG87=*|0W}Gug2Rf(etn%atR1=mV~dq#-S26$1*v%LLYX zDkhVWtiNg)ru`(ejB;nl>bNV(x^YEm4!88qJODtNzd)J?eE7tWQI)DhQViTc^1M6; z8($YB9m71J}`e~pjfT~Vo=s}l2 z>#y`&ZQcw4HaCHgCiNI759STG@PWx%)>{XX9C-r^St&zuP@9li`OJ9Vo*_I4^GxLJ zt|d##pN>1}iU-?NOF=)UP;djIR~pYiFExzZv!~_pGS6LJ4ko9a$!)Uflhu(*s`^U3 zt#ba1lsy>_d7fEX#%~_Z1E(~U7o|Q@UZz`}TFMtO1mXX-l`0LT7{~Mcumf)yc8rTl z0SdtKE@1y5nS;@^YFNz4LeBI4LSN>B=Z)HhpMZJZwtVJ1H-78b#TC#99p z&I+K~?V>#({eD4j#UB0DMdHD-VW0gDPVppLRZ6VoaAU?Wlqb2*J}Nj0xl*#S`Mq6z z@X4Ziyeu6*HoPdMN@53|HHfng?O+AXp6f8X_FhbH{vc*IJ&5+;4d8cTC}gsZ^5v&c zJ@XCJN4|mb)Q^B+0gQ%ndM2R9sQ2j#%vV!Jlbn2+v1ef{B$Ik@3If^=ytav0tzdTD z18A?lQ+6I5uUM*=1=P+EPQ8rs#1Rx*rx17sDhugt>ZHKL>mDmT+wHtODP(p*|8er~uGpYNE2)WY9`P@4L zEWLA;ar-E@nbOlok*jPnrKgbujqO$5;J5@PC1mk@6Dow%TQu(tg|vK)#OssNupe87 zro9$3fU@3T{U=l5nR;>(-~;if^zooD>W8*9ebS^37p>&p9*F59Rn0wU~7VSY8|s(H)8Uc z-$irV2Mo(?0h+F(dj1jA&wK?%cNSrx7Q=$|`1;Iv@^exwZjQUpx5@YD&~G}2z-W|G z5T=q(86majF7#mp;}-ycZ8Rs}DC%Z-ZWAkis|C9kC$6T>jSRE|E`~bSVjG6+evVZ38X= zGO6+AFiAPkQ*!zu39u^y7x6r%0O=naYUzdkao}1^rOdnq33uORPqbrdGI+imxwF`c zt#3HG6tm%G(Y$P#63TjxJ<`~N>z<4zoPF2$uIMb1{b*SLQ#`30?sd|zDP6hzYcD@_ zvj+mT4QO*6ys?S6)uP>X4Q97|7|pF8LVL@Dh}XUky!WarKY0@X&9+dy{3NQUzlQ3? zAD}#Y3^X8MJe2cr7@$U0K0uA81c@dB8KdZ}utv7hK@%{=ZIfN8YY^7g0n}*s--7nq zd(hl)58|#vDf!EV*ny@SD2^XNdF&YkG~m%ljDM@Ec{yWgbesqB&tB#7vd7!bKNc^Y zhhyRbF_W`M#`l_!rkxs69X^;3=P}J|rf)KwElws4eg{u4dtvp}!zEqz8OV)Gxm@Or zmfoAs(t?J|g4ug}!CE34mXTC6Eheuo(SsIQ?v39}M;g98J!!Z^4Vzs#q`HzP!6kya z4v366Tt-~lyR*N=Wx|eeaVbCnyt)_hz_o~j5n|hdV+-a^cg$1)^h=bk$gRys(4=5O zk_0;MVP$QifC?U2WRfkbT`*mcECYF#ACX4#aJIXjNo*2$f~*iRc}*$GoBp^jrwx6` zcK+0GUZ|9Zd^P;6=Rsg9b^KVAe_$3oG9nl*l4P2hZUm97y+y$=SobaHm%x>dDlJm< zWP4~Meb#`2y&fe^0*VS0N>NRlo4|?J5l^2-w?&xU`cX_j^Y_r)|BGT+jFvY9v`eMYLwbZ6A7tef{$#0>#Lgg&y0tya?o&Yq zw8e=P5oQyFQ)j{D3Yz+t-N>c z&53N_poVpl0V%6QaD!7Bm~EUV@?qJ-k}|o;?tNv6#1?t$Wc5r6oAv%Bpynx_8zq6#(9jf}CVZu7 ztA5a`P_>Zh1J;es+#PAOmL;P=+H}u(*t|}*Iz(|WyhY!ovXRYDAyQ8&5OfDuL>Wh)>qG_R2upq)9;WefT zh$yWjs9A*G<-%`qG9{U30~gM8FN!3K;|)&MOH&PH3W+(J&}RE2FqBCBJnTl4q+m*% zT)m7qObux)mmHFiYwKEhy`aY`fe+k95)why&UQSG- zwVZ%tI89i|B+xno_Fj1+Kf%+|G3(3IGixk+Z)}=WfFo-(ctotSRTB<8epFHBvvZ7htu~~UVZ6x zY3Ud;#=A=Bw4-Q7a8^WF#GQ+PSc+GVTLur85Eu8#c{4k3$*?_={&NQ;v(bkmPzWek zcJLFXw;dx@02p9Xz_ujJI!-D$Nl;D5OoTGQV|Dj=Z^AB1NG^GuzNZxshI%fHwvT~i zkgtu0_h_`|;N`KM8*S%KHLAMIi@*SJ5S74!bH2Hi&&#m#MBUokcS5vr?4*KYIDZ!L^eMD&oW^Xp zg01&`2wR{09c=#AKSgurM-dlyWgBBHB(eid=;a={x=vLdm3diMHmNQSb*CO zXc|z|<2ij>b=w6}SBXIRBUkuFbKMm-LRLS-%(!3_h@nC(hhVP2>odfy4zuAd%=TP^ z=BnG!?K-r*OZu8Asvmq6gNOeB#l}&D)e&e=isyu*l-0I#XVyJPI+Zr_%w42jNQSz6 z9*(t1K5f7zs|LA(@VQ0?gu|81lxGT|H)Z@}n%9hPh8ZxztE2~q#eCHUgg*gY{etYc z0pV6nEa71~Muj4IMBI3>JtcI$m(Dwa?c)O5aaC~0y@-0cjOqtDm=8eOwx3i+jowJZ zaKd3M9#7k%JP^oM_Si}fK+CBs+JumrLO!Icmyrre2Roo}-mr+KQy5$pvb6w{Z2ev> z0^?kMci>WB$GEse;CcWaE`p01%t5vQkDXZYfHcJnZKTts(w_L=8*@+D1=23l4Sz5~!pFOx<8rU81gNHW9%+ab?XRSJFtGYdnN50Mx$?Rr=X`=w@U^kfpaopsgurZ39@JArAMWx#ySA-u^N0!pgQ9 z7PN5&#mN^@uDynGdKy#_csLY3=~^)^06hX+Cs=zOtFe^#jy++ke|t!_mK*6%-d8#a z(^-S4k5=!>tCElz4f@6!JKda3q9#6PH`XmFYp~_n8QGB1OR?7c6ekEhJPug{4ebo* zB{qU4Yl5mW3MPyqADL$(b!gJ_1&B%l$!b#^QiwcUKc0xF84gwuOV84@Pa02$ zN1YE0XNGo^TA2XM1$ejzap@|cynqhmKzr=_hT?X z%m}&ox1&Fww5V9H;Ww<_0E7AcRH+H|Pt6xd``Q&_2S zFk?v?Q@OOX^3RPD2u@ZHh4wPrP8!ek4RF(;87^Y>z7JyZH~%qapZ<^0-u)@Web*Ug z?;J3reC81hzW6Uuz4Selya^hX;DrUmQZ|wz)^YBj$7ow!y6vU&NFcj^k@1mKzSNsG z9zsv0mn}Cf#kdGtn+WID!0Ro#@gX$t|8=x?eF8jMnnU_>fDzW-K=H=&sJ2d^3=?2b zf(K$;pp#|cl%3is^(y64R?x=U8OK4mPvYD7yzq-MbS|4wVz_aUpAnR$Yy3sQ^2_rT z1|^a?7?!R&1N6KXPe`LFGWKKmSl z1PDV(NOF3M^6&y_Tth@wbXmvCsA53oJy9dq-in}R+qpw=RnLypqV1nyR+AVPFy19C zX4lENG-_PL(Oz^*hr!j(oQunW9pmCsfdaVDje_bL6gw2nOnXf>Su43!eWjZz0EogD zMIgfAO2LLRRGxjDTzgB}EGO$elP&p@@)4uJ#>~_1coJJrQcw?p7)J6|(p80{7;7%_ zlx3ZCZ;ES%l>E`a3U()Sa)eZ;X`UoXEB9!Ektx0OPNVCCYG#|XC`3;R6hkK zu5^+ySSocA-(&)uUjv^#i-sypZhjD3AN@^CKKq}ex#v@e<7HV7|1LoJ>~}Hz{6E9s znXjY9I>N93FD=UEKdl}WZX;bW9jk5i=X@p2f+~M$So|N6E-^+L)&qpbBy%mOizucu z(E27~wSd`&K8NYYehs|3FRQ3+0tSi~o<#l4KS5YO4(u9>ho+OGOk`6qZRD~8$0$Z` zpiK7kLH;1LyR3|zeInNLYq9U zL$FqG*Oxlf?B9sekg%57E@b%|e;W;g;v}02%CIOHdKxeT9Aw+?!3yBJ=UToy@OEIw zxVTgx0zv^E48emT0!M^)rsLX4EZG_|O8067xBwZrNSJnTA+|PEzgsl1VD#Q|^yj`f zsKWK6^&d+S*kE#j_Hi!blIm?pp4=mFZ(^Nh`; z(sUt-xi0duYh%KqjEyRiu9D33tJ1?7S{vo%U^qu$Is-PR=$eRjya$t8KY*!;8U1A_-VxD-FYi=`Or0>=_bmTpG5We zUxBtxf|tkQIqBs55JBD=zzA@c3|L!n@Rm?A<4WcpSbHxtFuBPEYHkk-O~db4jCdir zaHYw!8*Q4l5?C)af;~TtN$UzxoE4gm=B?ukBvLTKYLTdi9XNV={{^NU|qNXrs&GD%NZvXzjo~^|fNc_K^2%_4G*DG7 zG?+GsYisDvo<-XLv%S}2>ob2BTfhE~(A@WF#Dh0&-;&C=4UF=ICoueze}Tadzlw6$ z01Fl3;-Z{W(g0|aL7|nZr*fLYR~NBrcWZo^;Ts|OI~!{^Vmb2_AOInDz{UpR<_yhM zH)D3&2hi=i7IC!w9-ZR&^QgY}1(au>N4XRc1_h|7L7nW~;f;W`GKo1b-nu}P|MXBN8>5~u+UCE$*AjNf3;WGlpjC^;^hXVC=np zH1M>@#8P!_Qn-?6?x8TqC5c5*m?5Ni`LqU0%j4x&AH3(|*_(>Auxeb8-kTy~Gr}zC z4AWlz{!)L1YB}xXwe^Q=?tp%X3^W}uZ4kLcQ!it-dRQiIe&|;*{m9=yd((Z0yAJ`| zbeiW|24*=w5VjL9pnBp+B8~d2JQyV-_ zbIx1hX<2$%KKjm{xrC9ek?+D*oWC!16zB<7qh=;bMC_UhX@DP~+SfvFPDpD8#^yI-+8@K#{QxVRJ$ zZU>4IyyqbJ;I*K7Br6K+5HSgu>cn7X(OF{TXc%+i z80D=js?*XxHFVT_Y4u`W5My7bNrsn~1zvFX)Vekz<&%yPQ6PpIOxt7>|D3~)adA0N zl;B*J#`>wd3n;uoYi46VnS@nqL)q%DwvrCFT$_yw0KByOA~d+dz_R)wte-*g z>a(bxeFTFa{1vL>KSWVQ(4Yd>1L?iDtdkjY9rOM357Y{FwU*M^ngMF7K2 zBAo)02Hmc!F}v{rwAb8$Zr`=rzOx~%pGNW84^h1FJj%7B2s{H1$I=LN+5ksm0!Uf& z26P^j9v(u=nl2Bh@-P=wm>7DeMAv8k%^6a`Skazy!#tO9lL7tYF>=(hO0x#j!X|H? zrQOHFi)-Nd%zvg85)13hs%(^dtY9{ZgnCYPm zE;`6IB$9jB5>Hb+xl7V<&`qCAQD*Hjn_v=j7)0W_*!HaVw7FMLAL{%CU&?2>>wDQ0 zOnS&}rdV80UzDs;K>sT3plKtx_am7EsTU^bs&SMnV4F{&*^xUkC?l){WeVUzdfZg# zMA5DRZJYzno&ujZiDvNtw%-3aZ2j`z$JTHEpV8d&5aP-{a5YSMzSCf5XT1D024DQ2 zF!=VLqM%LC@)&Vt30&2{ENbr^>V~%MtVPl1ye2(n<15+N&Guf^KEHT4bV;!Bjeu?> zRu(|h0_WDin=K+nn7!|#n11}X&>grkOL4=|XHkFk-=ci&2cVTPcu)!69Q8~eD1Qh) zX@^i@%3Zgi#En`gP7Tk65($kvaX`g$+J<1XGHdO9u}!rLiY<{ z7Wpx$l&VXfJKxugpvyPyJQTxN86TOaPt#(|<88_z(?eFRN(_eS0FpwPH`AHO@KK!s z9X2509Wj(rdZhju=QpD#QstPwF`eT!5!h#mTJ{8;YvBq?%WEDR_UcowiByhhpI(|V z%GLl;B_MV{*MQ3!al8b6r-wX$Mq$UexE!DY7%zhtcY%XW=!EWQXA)`p!G%k1DBU{y z3)qt>{kiu^+-V@e=Xo=^iL&9%tWwdbUKVB*+AD*xUG$E7sZIowT0@VP9HDXbTf_KBh zz-Z*nmeM8}dDb{yKvSc;1k2*;JPQ^YVloAist4A(Oq+!Y?if+K+ObU z?IeoVpF{P+w^6Je2Np)UIwYTzsBI1lU-|ERdP)a}9uLhoT-K->Au`?t<{Ei>PGRkm zH=2iaO0vIlo2Ml>CVe4bxl70_FDEY4`31kvyx}irmzfZC{M+E_%(<#YH zkTNA8;HGT~U=g%jd78a&z4Y|G^T37W*2VWgt|MavwH;!;AP1Jcn;nXuA=oi4 zE(ZdMdv?5p7)sfCS~ryP9pQ8mk@N`Q^9z8i!Pnk`?~&nRl6wuVhOE^`n>$qGvH zxvwYzX~4DF79ApQlOWo2hCzs(jMCdm1J<$5PLF@qUJwA^-aHAmsD(`|d^0w@Yl2%y*@Y_0=mPa~c@g|=bL_Fj+42YwYB|A+q) zTc7$Jv^U&?xVo>G$GZX4wFu|mK=I<^DF5o;q594rqvUg-)e(3+M5F>dX@Obv9A_p_8nE%6UCiI=P_fY<^XcKU0B*=--j=CA!jwAbI+FTged zZJtAM{27#|UO>5Z1_3R2IFwQ~jhvOD%RlXMKCsfW_Uvu0j=o^%N&(Ie3N%@j+!YI> zgZ{dFNEqQtqcclI1f3A*MuXBgn@}jrrMq4(Qa{S`)|fhjTP12`r)6I$eeFb$z7o4D z3rFyYin(rKWS%O^&piV2Y{$&7H6}zVEOq&tsSa%{^o!~t)?S5a5>pl? z)CM^k^1@QpxPG55GCgEU2c{G)P{Pe4D{`)&v$RvJ^v3iCNg*u543Cs1%nfYHms_9} zPX#t7h+LvwIfU7*AH?*YPh)!5CosG1gJ^HO8{L8H5Eob9-Cj$K2xnhM@$yqBpZFT8 z$G?i|=n)i~XF(N#>Pkd563CXDA|smq3T18HgnTe%+pm#y@BF~h)AY|eKZQE+Sm697 zy5&Qd-t#HUZv6n-t8YVGT)m*?E(CDePDeGvA~)7AH;H|!g8S~lwPCYR+a zuOz<6i#&^Alo!f+7r8uX7|&J>P=*dqTr3U4#owqAVK`@5Xb6|j3n1w!$%?WB%&?Jg z1T(bMsI#&p)MV8EMCt^^y1x(I@&z=FF-$GX`p}F=xY<>3cW9wIcAJdQiCfXbBdG8!h6kCMj z&!c+cuTg*He?|Ss7g5bNP^_#1!x5MYP}3o_QM?QpCqWxjIYbKmAtkFCRz>QKlzu1U z52Y^>@1YC;B51Y+tZ#zPOwe3)7bd^{kI>%w{&do*A+ZfWu>&<*C|`d8gU7yz>evqv zmIk2V0Ej?f^|HXxcSGEpHkO_&3v)V;2pC_PbtdnH8nzliE|Eh`9>`7>HP4-;NW#CY zGU}d^Im4nyXR9N&ymA##+l1r`u-k#R0XxRUWdq6H`t<-**CL3q0|LN> z?)Ioco)m!!K*-K#2&x=S?vmuFe5B`GDVQQLmnoT$Y4GIcbQu(vXQtRJuqct9U64>w z@HWeE^XD9Q0{LW6aX+#utNuI+$y-a6dSIreSl^rBMY7T(mIY!}g3H2Pn@kMuX5h_r z#I<#FYg=fBt7xvi1Cs}S37Zf7Hnu+Y8<^hzDYVz#j=1MA;?f?OSCJ{ZcLp+ob}eW& zLG|4CF#5{>g3+UYhQX0;@V)x6q#6K(lxV(+~VAnma#+_Rvj;i@P%Sx8-x0z>IMEI0oPSbJ--U zIVDHO*Oe@PjoLseuELuc!+ZHMT)Z(?!r52*qvSE3V>3~dR}){thYJh`%ie^p*T5!W zNhm7hm?B%99NT#DG9jGXu`uMOK2uhWVvbuyeO?j$;vO*l_$(U@tnCKQiu?lw39tx>E z_~B+|5ZKuc0v3-fJR=FCDu&#MNn!LxgOZKAxBxU(m>!)=t-QqiPNl=qqK_-yuJZGzmC`uVi+La z`F?b_KZx0FA4Yf8&ETSx<-RL(O3Qep*@d) zDX_E*49B97nY0%s^fiZrR&>@dSY6oxW%`a3Z*N!>?Yci zn`l1tYnc7U?<4NL7IA5BhQl_2;y8Hv>sb8!{}bieAA zGsiO_Gq#Kp4slle?60inQy@b9BOdEA=3&pUo z`ht4g97m{^P)!TXSE@=ke+iPVFXQ+~C$u46c|mO<8Bi(#q6v>uQppvDYS zq4bEl3aUUPS(!%_A=CkQ<23m6d2If|KgHGq{|R`o1paA15!Hy7$@)7Dm#ATPAO{Ww z;&2Qejzo~V&U@`HMZQ?EkZLxm`xG3 zwt)3@#PjQD&uyYvJb>w4AIJ2ezlF))_&rQN^6Qx0_91lpu8}2X!?A4JeW`{8va((> zNc^yI4(0J97(DtHSoq_Afx$E1K+&8B4NCCR3Q&(gB&R<5@DJ%hOUU^~=xZd)jnTv- z84tLEm%5jjF|koq%4FEt3|QMhJiUo_=`d!W{2es!|19F3Yveo?%6V>kfHu#fdgftN zN4|p4ybc;fIlHH*eVM0&H(ZGn`a#js=2aL=$e=h&xeIT2JiK`h)qR)JHJTYuD=IAC zM24i%mI;++&Sc+7PEB=V&MqPep+<^rROg##x$K(plJTDia+Z_+vozdzm#=^x9Hs@c zqLSffa&D4H=26YiKsHB3gZLRhFx++bQ?C`dx6X_iZ4$>e=#wTS z8QI>e8`cxox(c#=J;he#r$8(Q;CkU_W1ox5)>D@cm!V~Mz#$ai(E{RdLFAx|zDGpb zIZrBD1WPXl(CPS}E0auKR7tpDK{^B7gyhF4c#5XNL@7y6Rus?tdxme#F)Nsyr`Ft9KN%K?rN7P`&ar zhL8LS7XI*`p+546xc`?H!Mpd%xG$^cOY2JLCXJJjMQCg6;5s!2t1npnSRg_q<1g)9 z2RS~SLI6!C;Pab^XQya)-H6%eei!Wre;IN43hn*DjIeeR)stUF_3U3Ggmb`Rshefh za$ZWO%tInxNgu-0`5qh<2W{E4#Hk)_ZUWeeKnNf^-^WlfvMIjiMFCsBN-Is* zf=ki#S^3b*X72zkhn3CvRrQOLaQERq%}Ka*yfqnoS_<9s82qHFS6SfZvUb*_kO z97{BSNDK(-8gP`|Ik^~!$Kq$fxOfl1&alWfKsfz6%I|y$gCBeo!{?qrm~Merbv(M2 zW1q!MsLXG|psj&4z)5)7HqDAEudX09LzjNPQNc=m1(ia3@|Wq2?Z=_=3H0`=@Q#c= zUjVG}i{$PEiK3BmDDsl9epmHiJqasMlzZ0TfG9OV!f0o^X->gyL@Y|QtNYO%z6ss# ztI+K_fVlq}#Dmw$re@1~Ev5GmFpA?ZqCD~_s#kxA>e%xrPrZt8<~5nDI2?#)r7U$T zZ<`Ef$~f^0fxTh80D64Fs$AtRk0Q0Av@c6=2nfv#v^4=vucKW!h{^3A!R(HYpuO|M zh)cV4-;X!R*CAKrKN+Z{Kg-kdi^OBV>wJNhEi6Bw7UH$;lgyiye2$qV)0ak3NaMuLO{S2MchPpZi;3D*!tA} z4bu<)?mRL(aEY+vx!4BadI&ynE#kpz!PQX5U{#8<20;XlO!DOaMflic+MaUPu7mXu z{IpVy;8LC<*qwzkG~~TDK4#oNm7GUU2O=d!q3ElE6645%$c?JxEDi&5%0uccL6vXj zG8JW+^++LO%G5MK+k#_>E{xC=3uyLThuJ+3VfxT-V*0t?Mf1U5MtAM)?>)nU8PrS> z*3P1M`G=^#{RIpj`2q%y{WXfSM}b`{;H4EAZa@IdWO|E3f1XXP)^sug8{f6%9$xmH&^b2g}uqKB5mLj39ON~`4JK(QNlot6OHF`WwOEY z-B{CyGR)Y^f?0AGTo&7&ZK%f;f#IjUdBZ=?k1e8Qq!3w#bNrZiLFVFZc-9et&?XT~ z^R(M6C!?)B5!-H<`YH?T#+^K5zobLJ64?D5z49RuNa=3TZP-WNiy~rJdO0nv3}Q_g zJpd(a>_AN`L%2n)2kpHD{@#JN1UsIKZ2+2XA-wS_>K}Xyqd)uqp*(XOv~M3c6u_*N zrF9%t1<4^s!o)&)f(nK&=MuO;R$x(7FKJbbkzWHWiNRDVZ`O#;Dy!8n@e$}Aa@}-#6CzBDzJ)}4rS`LPM zFFQ@iTX_j&6Iv0>DADx1j9Fq3xp)1Lrw>ZPZ)J1j%pen!${{ByqLM#e!Q6My%D5mGp%!Zi76-<8NzrgJN zzcZKV4qPg{2et7}A8=WLSN0;V>_rTPoG+p>JtuOhA-7j#0j<%_z`lDLde7Rpr~q0) zrM{%)@m%2DO7{;bxvbYB$;(?J^nqqh{7 zOkqSYN5oJdRzq~-U1(OX!tCHJnBM##CLj1LCJ+54W)J-)+WS9&?(ofWsMveWu!tRK za}D9l>nM)>2-T7AV))3PV(|3WP_4g#qGVuY89W*TR7j7lYtsyU1y|wLpy+$ncis+K zeOsMf1ky59*-4fQJ7qHhn^W+{3~jN3*@5?A^5ADMyZ<3{yY|cKnhTio$3fz>9}BTX zICBi;t52bN;d>~L{t$s0U^oPI3~D=syj$EWt1d}3JB#HZ8Ph3$p_M-hpV^V?FnW37 z%F5bUX)oE?8hJoAG$9;D^Le_) zY^TnINJ`Rf0wiABf{P(A-UIx!uMl~U!H(x*J0QxAg5?vBVDzv5YgEU7gkt}GP@#uB zDgV#wXL}~L@pXuhvRT|J46MQqmHepB-ec3Hp&AFs1d6rSYbuW{E&Iu=4w4L+?Z6`K zNn}dOma4HYJJ&n|CEV4uDLo5FuQwE+BIwrSoqi+P9H(o5*$h0LAyR=zCAzC`MtAsT zvbUw8uLD?dba;ssRajv}B1#v`Dp zWH=(SY-0^+`19rofX|n(@pK|t#Q>{ft3I{mB$5qlNdQyF1X* zK7H;?K1V4vv?6J8NorbWtV=a*cofLy6KGNz-7UEth@J93W2~?4X$eSTtJqi&Nb|q z-@M8o6IcQJo`uhY=;z+pBk-nz#Skqd0t^#hZGc2*HK1t+$--pV!IqfnjB|}-JqVF; z)p$f=02GBPCpkWxn+9<*1y82nW~N?>fNr#mZqLa)N?7mN6_TZ<` z-1#AN*WC`bNrk!Mc&|W=pk|8V#49L|Jcjz|Z=!zcVbsrj1J&_o5y}o&9D@gAX|y{z z)4kV zt`8&bI&cXdi?;yEP~psRlrKDv>bXZyz4RzTw+@WQB0t8{4CmDz|3lxqY$=WwCNH+X z5Z<(Za2NaqOzzN2#@O0pYV6Dy@itWrY~(eW%Z0`@vCAU%%c<|l;#kqU+X=vzsh@Z7Ek6mz-PIW#qfDdMz~{6`gdX&G^4AG&LAM|8gXe) z)(|Ri=5@GKF#aZB@by2$;5&bU>dcQ&Ox^&muE-?LR^})bxxva=T#z5BF7s53M(plE z4%sGREcr=FLFf*hd`4PodsmQTqBW%S&%uzgw_27gO%JF1U?KVi$_sA=((jr^q<|R2Ye7|kaPB<9sZ-dx z^_Q`E$KOD=|8{hHZnOk{%Av;$?+WaAF18H_C`!c9Sd?UpGVb1E_Fm`AI*%NDZEeq`tSibRLK(BU86oT73fp zf;gF>>ln>w1_D*C?=q(4c zsXS2@E{orLt*kAVWn_f!(@Cl=b7!QRJe1<1~c+vE!QtS((yW@ZAOwi1^fgFwzw@>!*k2(VrHRE3-Fk~DP8 z(k9CRfUVcJRD!$%MEU#bE!JU=wgFFPz8?j5jIONFEv}%u`7U(V-imnOTJY+A@Pc?H zxEcV%F?h5nTXY9K*TR4e_xC20FFt|t$ahg6`5vklet>`(D0IMRh**~3*nzr;B0E$H z+6xrAiU&&OS0p8B;iPW*@1$Yv_X86*DKC(0n@$1XlE75~oL>h{okQ#@L<}+g)bC*W zvEPstA&aY5oX+(R{u1@~{uK4mr%=A}JmQ{R;Kc=SI}^hPgur^3U5tP(T^1hGOFQvq zxce@!QD}k?^h_U}i{zV#i5!XlLZ01#w;KE!m__jAXx>a zc1&uBHDC3r5NE5dNaC^{JZO>0vQsY#vv5xGhDsrXigGWXGU91ET3n@N&V%0i+mD)I z8d39+kRqo!-&x&24;&PoqT7LMYQmQigQD)h3-rm>Dqyv}Fk@3WTymICBo+#7S&?=Ygo)k`|kB*=5FUp;7GpcGFDHxWFIh+7@ngSVhL zd^?&4e-X`HAIn@47RfCN7j!zEYceqfi|qrRayEjx9>e&vP?Yjl()egLUN~*XIN{+jSFkI^|Oc< zU}tm?={jsRB21RmE8xR6IZx!zwshPZ-8oQP1xt~CS0S0~6Qt8)v`p!k&anKTt2jh% z?HenN}>4Xwg2%#yU+%#HB8JH5mh@5KQ1Cj^#zN2^HJHJ+8wfj4KzU zo)<_D2+}1krj0qu=1#E%x)$gw73q$Z|0M^wC)VA8d6d)!PU0OcLsyB%l z0m)MoA&p|t@ntzvMZRc&6c@@PZl#FPM@Cm-8M`lAU}FNDoS+-7qFp_R>4$$6laK!v zc(?!_+7Z*22$>AL8I;GLMfKwMP(S`9)Q^7&*tZM3dqsv1yAIsS1Za>P_Z4(+7-Qqi zB-Us6a#9aL1R~wqJ8N#FXKxLk5jyKh>+%I603q)cYmXgb4KPf&*lJ3{nx{>7_0+c# zFYQd}2BaYdYdcBLIgv2-4zM{IimP=zw0_N4aQP&`-8>nBubHKiH(8pdTY`8KDIH}2JI4TbT6B|*BJ(7v-SB_x?V3TDu30yI;gnIaBX(XL*HZr}B24_uGt z<_FN+_MoA1#emuwXts&!hhN9wdw+`Z^=DC@egW9E0xU0yT(q6?z8clc2rP|v-fS3= zoa?pMYla8eo(Mta6lu?%ykc_rU94^FvCORSQ*rFp#BMuXCBX-7O*)M7l7p_WzKB^ zgC5E38$s!5aV>zWeHUiDI5YC@M_3gjJ==1+0%FS~q_U;82rC9l@lT;+! zQXr^1GNvA^S>}L_ubW4~g~j>`noiIIfgoeCay+rPh^-Nd+N+cNBB+}I6cOtnDYcyl zE_dLK39vo^Op-R?TvS!z4}IUd#^&=a|m(QLGez6LVMe`1XXeV zX@;&vm~5bW?)w=1<-bGu;*+4QGoX?|;|f$&Kv~OXSRkP5Wd9CTRMsYVd!bs{o<)y} z@-_R;+9Yu;i#H<)D$867?WseT2geW)ivlPMpzBbaKLea!1E1eQbJM+;e)2y;bK`yJ z4&Ea3T;2hLFKnGhSUZ8iH~$EOzxbCZ>IPwT2-G#Gu7H-ob|4wU2|&79g1xQPFc~X( zqi*k_HhQEqX7#-J9G+y5vB{dwClWfVp^Y?rl{`aQXCOB&WN5$)c_5G?Y;l7c9$L{o zFNhVHG%_cHfJpF4J_q%FsAsc3ipXlT*p8JX0T^?JitSP1j3wDBk%^=5SSWOJtkihB z7eGp@xw^fgb&`w+H+)j%pNnW0SDy1||$qY~{=X6lp zNSv}jBoZZG1Xunpem%1v`K4_MgrWa=2c~jE)JLBHjS7V2kvHmy07YB*AO-<(GN_GIY2HB+AD4=Y(N)Nl zh7Xef2~ADDviBhP!DSS!u~Z4v$&*=RPutQ8=2o;6HElOAfYd9ukXlY{SrwnG(FD&K z7s^N4etUy&<*<)xbR^>@w*=CJN@>XD*Nj+#+D}F|*C~dR(L^6CPL4M#oqGB}X>Xk% zvUfTRLWX||52K$0gV1I988LeqD^19UyZ}a|fUXE2v?#g>x=BF0Sz_y>zlX`ke?QA( z2et!tjEn7rt_95|D8Ka=sQ=A>jr!b440f%8s#QDeQ4?Z~q6>|NDQ7a&{W!t`TTq02&R! zoea4V%Msx|G^g`}+<21iYTEaKwLu}IM%Nk`qaFi*cy%m_&`XKtgl3N`X)!2BJ|UX1 z0he20{j`)Dwk+FIu*s+Com~=6hpY6fgfP#6dZ*Or^DsTUlMw(V3!sJ=A!|tWJ)%TW zjU(w9&q+90k)t%w_qIwy|7)G(UVzk5f%B=IHmj4%4J9?iJU^u)+k7sgiOsK3Z;#+$ zb))$xC4ARfH5%X(k%CK0Dx*vig{~IqiUPz9ie?LKJ4DkhV)DWN6w?p?r;_FlY#Zzt z7uyLjg1QF9BVR)Gum39y&Yi$;bp=$_;GzP@h{zE{Y3pj6*a>DirP34`R7nN3^yhm; zte%ce8?Hj#s5;S-RCyyZIu3{k;Nb|ou!y+#0C?Aa#Kqm<(E_-r5JM#s5vvNQEAY}P z;_@!=>ORDky+AdPxf8Cuem0?a?Ku>$J%{q>ODK-Ng!0tOD9#^8n64vm0}M+Ub|^~S z16_KQ6xFbBqb@Tpqu8d;3Sx-12@jH{T^oP0PW&PksAA=ckmf9YOu*mry?cZ4^hJL?~Mn%OlxxywGjW zS&fIhK~w|Vm)dG0leR&Jyf+${oM?Rctb5bTM-L}9of_vRV{VwJry__9%1&pg5ogYp zS!z?QNxRp@8gP=zGrxhPM-tA(*sEIO*v_|B6wNq^Tc0-o#mUG=f`JED0(cZN6x`P# zU&PyzNXMF>8zihTSQ>s0toaGd{hDEDVI{JcNn*+{Oh3Mc*Zd7B%g4&#D^CnkvQmGf z=>Tdp$_kWN6zIxYJZh8kXv1#I>O+{`|J#_}|J(gEci^&N$GF&55XDq{`>#;`n}3GE znWGplj)A%c${MkYh+PK?1t{o#6KW(7M+7D@E}~fV1OgZ4s+Ar!L&rnA2x>c^Z6uAV z6#3-{)=8MQNlaS|(UwE-@+#uqedunv3*Gg%As)OQad|gTlrp4I)^d{TTQMN!dL%!! z&^DlED!*-u>Zz}xdg>dfpZ*@oSDr^06~Mv(yu1ty2U1*);5LGyGz!{1Od})qEWT$q z4AuOT_7u=YPFFmH018E>6fLSMax*@nrf0@QQ6Ow>fVMWl>m6cSpxLt@vs>@S^fP}C z-HrEnQLi|#oN`L%PoaL|YZ(9O|A6w$OTcQKJQl2*%L!wPec?r7b>E9|VN~liD7I>Y zf>6_zFy^!(+d^CnIwIL~mLdG=-UmoSCUv20Qh;pe6m4>prL9JOFk?cGtmiDU_1Lw7 z%}|i`TN}M(J*2Wjc_FKJ4J;`5uP~TV#!ZKi%up$>46iv43AqH+c5=g{&|+G9?H&|c zWtJ7t?b4Jla~4-ye<6=yZXbhQGB=FWYn$SkL70rXR8Fk}H!hS?UO+?13_yS3#u5RD zWr?mDf@WJN)=#4uUybR??U>#9E12E!IZbQ_whMNQi){x+c;XR+KmDIEI{F;O(=~*_ zP!8K_I&j;j@$T4(ry+JCFhM3;GONK6J21=SK=~EJfjc!cSl5x)HE6UX#>1+f&bqo6 zakwP&B+4OTC6nlQI0CQiMqFA2#!KK@db3PH@pA3(vkj`CieoRLeDO(yV=sY@y^Lz@ z7^=172wR&7jqa{lm*UasDO@=dL{|SLWeXje65Xdwf|Ao3NY*XWy)}?fN_+WX*rO?6 zNsm|!jY5aJW>a8e3z&9j_FjYL;7w?5c@XUlccZ)dR`Bv3%izj@H3rO}u0eSHMHJuq z0_tbJh2iVZq9~@I)dktWOPE`So&uy0W*{gbbd`v;SVjjSfYO~Z9_6gn;iyCt`4aDh z_Q9>eWTU-$A4n1*$Yjqn1D+w9m70LI|U@KoXDU)<#vdkt*Wg%fy!P`FA zSG8i?cvRejN`>ajOj`enn{k5So9Ch2_$ri%7)0pkO z6I<7O49$%nLwo&)EXEFO6YLllR{-dxAA-K~B@B;z4+}3njiM-l1u-tDZIc3P8aWYE zmsWA1D=k70^`Ht)j0jU0I>bQ)E(*k|28LsV@d|kN0dxnhL3i*PbO)|QT-ps@Tmk=_ z3~BsWVCfZ8I|EHNK$9)dbPMGRPoRGKn+PvG1A6&6lr^Iq0KBjS3>UzmkosbouR?7n zjh{7CW?WEe^rD||D-c4Eu%_8{xuYw8QYFg)2#`h&x{lwJzjZw|4MqgEHbI-4h%`c1 zuV8lTeVE<)0GiuBhIrM@34tpKT2N}H2&aysIPzUoU;fvqjy{QcTp}!ufMwZMncF7q zmdV1)(x^-GAl#`mVq5)`8ax?F5!!>)L%_+XlM_E7Mhl7Dh|~Z~0WpNM#MOtaER3xz z(FP2fo;Hwqi)U4vdgW4Qq|1W=&6_(n2*@JZcY9%te`Z|33{$cdMDotgrb#E8X7O{` zR$Y-=U3Tw|4F~yq<4N@hMKvsf^SsR$u`(&og2W)!bi`P)%tk1U8@dT)6$jar& z$|ir}p-7%2p@*a|FU1%Yy=aDo)rNX{g?JJTN>5TROIadT1JLFs=*($MulWcz?)Y_d zhwesq;5Lh~1KR{U#>JI@^|PQiUPJwzFJt)SKSa549wi`S^BnbHB>=51S=2H0E(FA? z2G=8CJO(W+0^Jpzx$zA+M41E7+*6jyw8zS=_+4WTiJ518B&B=)5t5Mz>SE<7^{3O*SMvfad-i}$VC4-Sj zUGfqj)g8`imCHpiv7UUcCkq)KU zFcct-zAROjwB7CyjNDkuG8VinXN#j02cqJZ$`9!9iW$qKG_;AT(53QP9>ZM1YPM$7 znYRT(Blmvwz=leK7#D*YSl>W+;}j;h{W3N__`B$KUyHbOa6aM=Tqf)o7gqvUhBS)r ze*@K*KacYKX_T|6C@^p`F1jc(7-WxvHWY|;Er)e2E`gSofyEVIQI~rzEX$@;%e%#Z z7>s1DM9*-zSan`Z=zb2MYeCHvbnZ05+8NOL85Ad8M*YI~QNDTv<PW82F zU|qjM2&4_C7D4J1I%(R{Q+EJMo=n=?_DEKFf{)K5$m`iDRQ`o!jIPNOBFRai-TP2TBQC~;f=#5ff=U9Z7&;syDN=tTM}EiT zoBByzWpi9$^vx%G2u?mE1Rbo5u>d9u+<-cY9|@mAZ|r@YZaQC-@LvSTB=u-p-m#x6lH#mDs%4*2Hjy& zo*C*LsY*$&Yk{pT(D@CtRHCUzXzu?d%s%|4}zKidE=qAVDnT|b_kGV)Y5EtXId`V z^TXq63^6VwJhS92&0}WxQP#M6ZfaZ@N7!UjPK_qPY<$)s9cZ6k;uF$522U8!p_RO0 zR6fbYl?o6FL~F2FdB}!xyx`WD=Dgc0PBKu8-nnrhAM_wG!#Ot~Ouv{BB1=4Nct~g` zX_%2?U_&b&U-LJdC7KgOgPMm%mbr=*Xe)|zI7})+%dLhhw9sl4f(R7lY>`+8V0{b4 ziF4R|;CHb8ng0uTxCAb0iTASt&SyCzy|b`mT)Y!tlQT^??aC`Y1Ti37m@fr>PK^te zgSlvH4PoOv==>S+R7}=UoIQc^>F=O;`B~8VIfOVvF)R><1Mp}hlU(Zx+;oVu27wtN z+i=X3xAcuzcL!8urur61X9E6{)rE~QTf=3_Fi(VZJ-!((?lso4H)c~r8i4B+G%Nej z>^_9%-cO==@Rzcsq0#w7Iy6Dxw0yVc zxkyS-T=;W@C2cGu1mMO+_AD7FuiM!oYQSr~m~jC$JeZTW!GhV)gXQNYg}#=$lGLLf zET$>SJO#>)3&oM8Axy&~nvT`ArqKJ%EdtV&H5$iFmj8cy-}-Aya@F@+)xDqRb>FWU z&-2dMp7D&0GuVI$3Bg8$5G7WmL_{bbk`Ga$gbz{v6ND5#0Fh!DNWcOm7zoCQIACWm zwg+P~X2$dKyzaeopXae3-Bl|eerr|tJ|1k0&pCJIx_-L*?z6kAtE#KIYyE1~s)h-~+KmMPg!|Bn!KSzQ6 z^5r(5kc%UMzhU;bdD`O(=MTUgP5=%O5?i2MqI&gNR4+Y^!CyUv`nj(lv?b;pME&?4j<>#UI z=5h0cl^cY13Nb>qZ$bCwh|3o3T@Ryq?~kIr_ffPL9zxnUc_d-d_d{X>v`dUW_1`f3 z;f9ec4y?gq;LV8WW z=$dvsOLs0e`4Sa!ud)PjqG4)$t7MmtSA&UJU(ec$Uy)DBrGdm*bJkQ@)>w~HGHPk0!%Yy>4XlyvN31qkqh{JI{X@5$lMcoZ3SR= z3Ar}M?1_JAM9`ysRsJdXCA zPavJS5AnqLUd)UmLTc$G?i*i2{rs0P`0}SQc;<5mCpI9PQ;VSk$Z`RRk*0atTb^(` z6%(H1XV%u%SpL5R3#)Aq=@GJCv%%$Ncckk-hnf%<^p+oNNhWJ3>=XDa=V`=E(eaIJ z?~o05E!SR=P9n4Bz=UaT3cov>U3cWd@7ljz2xk_OU6gm=GwapM^%UmA_Gjf>Gr+66 zI(WO#I>li8V3l0-Xpei-?A5Ppg8mrTudm&wAQQV)a$)sk>vh+dZwxjdmy#ID-V=NN zUaq~z)-LK~E+k+UftxM%p7?3(eB?ht2V=Xo;2=@R#X+P0kOO&La+O)zTjwu8Z}2@F z_$a{_`)v#5ZjG>e6XD8>sGj|ERA2ras!J~;+`5JeON7t@qak!WWTe)?ggX{OKvHf6 zu9r)MmcB*U^w$0+gdnynVgHy2Wn2U6PtK~S=@1{_JWut(lWWEha1Ir?-4B7Y)SSH} zguv*a+O&{c+eot(E!MDn=m{+T(a#`0@F;Y=&Si%q2s*YOvYbH{I~aZXS26nJFCmN~ z!bE`+C!o_cV0RDFEFra7{6~KudX1b^)u20&dPb4nk3g`n<@CQ`8mC1CR+E(i`90=$M`U_DvOgABowFNr zCa`DA@6!aUbXE4Ao?xbHYxVEEDtlgPdFR}maSa(lc!F-+pVXYI$22=JXeT0zVd5=X)Vqi)bJJL8O!CI!9+m2$^jo+`Nq10=Ly)|1;FjK1r{e(-FhW*F#{jpx4;S zl>6?N!sUz$j65gh|JoPBKErgu?`>~_g@*BL{jDiqF;9>hW#9E`KwpYj+uGk zo#tqznZ4u1ZrqnR#k4oE0h$G38lu$=%-{ddF#o&%mRt4<4jhGC6x?Rm0ER3<006R_ zL*_deyzmzoJo^-?FZ~Is=bnblW(XQljcZ^!0oJC_(U^|HV16ge;Lt`h{{qx!$TlSU znAO|0(T!DBpA`uP23%4`%~Ua4367tZ-ux>7c?l({K&t>51o}~cP2DQG@P`&0i0^CvzGoo;bW_;2c#{SZ)H`3CA2p2GO4Ph|XlKYQ%%JAqi(0><DBqV3LamH~&x(Nk5cm#DZVLrc0Ac_t-vZRr20?)kf#n?7-odik z#BA*Xn)m(_G(Y&Sfcg$37b_3+?Li?I1-BRG6GZm55pG>Wc>P6Guf71;-3E4Vq27K2 z)wXFbc5gAg2xJiGIIJF;-w-Z8xd0LH1#`iZ-!--9mFUgVdc%ERmA(2WN88TzvUCHb zWv;p{+{ zjwq7peuVAo3^)J6moa$u^B7!v0fU{_7`$z5+(nj8-tN{W-j*gTy4f(dLeWuj}>T78(*F6ckq;`h^U_nfIUUH@vU zhZ76$VI`?LX{H9w&x+b^VRm#f{u}a!AYFkSfdfc@hPLeIHkm%%6jF>o_90cW7Pz~0uCYgEK zG=ssO^_-D?XWJpGtMEz%wF$fxCn^1Fc%86Oc)3_Up>qJ%`6)5&hTTiDuFhpxGIe6n zFR#~C|1k=r$p2Uq$`(FJSQ8moR+pDO9&!gQQ)^ zu!c;hbd1%uK;qJaqZ38lHcP;aV_iV?>{PNqv;N_Cze|iP7 z*93On4BtJiFL(9YYPG)Ll30GutS$GE6K+cuXh^_p4!O3C`T57O``({Kd(ZokExt2{0bh z!PR)2t>DqNK-)r_mRb)VQF{IfU~=8-lWUaMaw+M>$%Uzt>GXmh1&_I5o!e)q*sN9P zI7t)9OE$o>>?uGv@F8%ggCYVNk)TM+25Gj0hAA-I!s3U10*fF0DAIK6=;DF=bx091 z-$nh}GZ;SkTNpm`rx;#)6*3A)XHEd2hPDb>E`i080?2j@tPIN<*%rYBMvCMb>?jWY zzJ%n$)}@X;Pjq%=GhgRy>bd+kL^L1 z`+onvRMIDTyw1r5>q2tD{t~$6i-bO3sczJnfY}0aZ3pvvKY*PN{&U3hk071AzauvN zF|6RbMj;mk2M%c#z;cFg?R8XFUqyK31%yj4quSj;m~A7>ZX(QXA?$5)>mp1;F{n9< z2vyI}%>_`;NK?Dna5q-@AH9K0ZE&XU)?|kZGaG<<;|ZM)+3R2fp`WI}>5rg1Bbv$ z)|rCe?=%w-*fLGd(*6+bp5NR?AsbwFL`1V}q{#m z+!aZ{Yzeu!i}`~;f}J1!*NCSdgsz>kHZ3@46mn7UokJ66qmfZvrEP%a+(-pOnupmA zs>?5-y7U6V^G~CCboj5FnMQ3{0XY%HONq) z$4)})A*3a-z_MX;nxJ6wn(EmEhzpYZw}CCjhL)~jnOFAEX~#5~VI|8j-oW#jELu4s zbY-bnR8$^PxZ$FAcGv&?x~W|t{;aH=u#>jj)79NivmTjr_%r0BlTzOVt5wym@nfEE z7hlHEzj?C}@|{gQ)@yUS30IhK>5jQ&vS7*7nv5T-tC$vIrLT}#L#M^FE1eXuSi2u% zIay<|8X%26UR1x-ivSknSMkgA3Le0xDxb%<>@$$gN$2J>m?jHz!m{Qoloky{50P`^=^AaCe zJvSTh#53~o)KvRcCsbw^qAet~z^CLEm3%Pv>GtIIDESvN~(KCcJp~)oxtDI}`yuP_2UQeq)&mM-$ zF0iE%&CbcX$Itr0ma4>wk+++8xn6I77d!BIu&vsD%IYI#8>O)2qS`bH{-4{Ez#6Rw zJDvMHh!Gf|YbONz7`ZU+h>jvoIpD2Q*8_e16ox`tnN%S6)T9@*2W&0f{Z7svv_J7z}Ke2P3<> z_JJ1V2^xJM@5%?v5!_|&H`c=kzD*h8ojbe(=IWNCrZ+-|~b1ZZ2*2{JX+v;wqC z$if9YYW>t>{n z_8|RQv97*7*cqA0{w^Qi>EXo0UK(G*;=Qq*GZ}+9j)T?Nh!3l41-Rig%;>XrZIi$E zR!<{i_8Rk;eVAWIJbN5tWyuIIf)`*BWh11WAuS@>-GKR{KZ)5#eimu-Y*`XHL=@ow?&^@)F2c>L2-mM5eB&8Zue<=cc>}V$jjCPHNKphqBWi8vky6YcE3YqeHbloh zuCCA$-4#uDRO^m1*U?#L8_YlYtE%uWiPki=b%;qU^sKJXA@MT zi@LBk!EAN$XN5oQIqf%v+Fja%$Z}a%R>kj|@wR1`EaWW@FGs=q^E`Zlz{Fk>E7IMCr+2<%+CKA~X~p_$ns1+^ z&QJ8(*oA19Nb)YwerY`RvCAIT4H7K%sybp=}Ga5oi+Pv9pNB&LN(A2im(HMDxz? zN4)SLgH%7p82(3(Az2rSf>}*@Q zE|T7$EH;a_zlA-QB?fu|B$JEW+`0d#zV@Fa7Ya^I1#WoQBY;^7xiB;`Bf$c?37<8< zgt?OotDBc=bxx)sb8_KQ%e51p0}plvq@7y62PYSHRf6Z+ue*sq^{tx{`P(^{=&rp^e%Nx z4bZy}>z&@ClQl+G951zgQoEC`8Ei?%F0pi41;!&%q-CgVneEae=JpMQ*Iq#N^p_y7zXaL7jxe9m=+XwEAc`PLhgV3@ zFzA*y>Y4_OLY065G{ywz5*TJg37@P*8(bKyYGq(kg_`$GE`AvCu=pEP^LBDgkw-q} z!Hl8iS)0Q#KdOmjzy*r!#kW$t26;9lYNR62ZMRme5d~8O77Ji^7dl%)XG_HOV~ATP zvHajqVEK1`3_9I_PB)>GH3mhx%`bT$;pSyjSHFSL7k?k4Cx08&#sFch25N;$gwEzb z6Cq*1nQ4p+b)8Hg8rf0_M$lk_ft|zUC29~51~!ZCkq;(kBTFxOxcCYC4$2LfO07p_ z{p&)V0)+kB=~ny!G2t&pPLiJ$y4Utc4=|s?MH7{JHW+)E;DiPHb-6wSi}9 z-$AWzVyT4Bn3Dt6%7v(D#)S3>k`nEVxJGAnwUY8yORI|$SAWiOQ&9uq&Fl5_cLmnA zOeC3nGoi3ma~})Dw&7;Gm`u)vH>qasVuUEy1>kOtTw`lne^z`PFuMzX*L-5(Sqs>A z-EDT{f-TwWSgVIt6%ZR#yEo8|Ph)=W{a8NmchS7-!_e_<-uiuqqmYZYD=Y?sqzEh* zkohjP53^lhwg=2-z>?b_CAM_29UFd{Ib=CUSnMHOzk>SJ=OMSQLKibgY!OoAOfpoE zz#R}$RnWSE)&rz!z+Da@fHc8`bW*DqfBVFPV^+70>q5Z?0)DBfJ2?RRaM4Y$Oto$U zUw^>qWx}g7@36ti{`WylEY^ft5*1rNxAZ)0Gat~$wWQAWKot-PXgANIJ#`P_)+xlz z6KLQ4{b(P0-))Op`Yn+XkXqC)JcZ#`|1Sn#eG-GG{}edB1#GQDH9}Jh%;!v7k7(6z z!Z~*~2(?Vk+pWuvkPwF!EPCcFcG?9v*C5mj~g?ffwR}o36Tlk z)q0o*OgqkOolIFFxzU)$Tg6V=w;l2S)a&T2Vks@TfP~L~0jwu$mJ5SeR;#f33)4#0 zKJhmv5>`ub;=$hvkksZ9_T8op1gu%^9H2IGApn{d;npsi6AxqW@qdivJx?H=eRqk5 zddMi`;_Zl@Z3LPnWcvofl~*8FUV&VG6}Wl{a`iIw)=lWGZ3Nq`QE8;>>tF)5st|&p z4hpF&#K8a<3?NknNCib@1FgN;9w!5!wRuuhsWHLTdyIqwg1D0{+|pJ@|0dADj?ucY_8<3KSp~7zwEb7Hm6h zTIjMtT14n{9XNdki|_kU%zyZ!h#M!MqX{q=F&2n;xo;t~OGq=r@X1eN^!xu6;p$b$ z&K^=#K`TLOXjm)m0BgwSARr+4_C{-OUA92eu#HVS0P6$ZbwUV&P}#bEV)*n}jGpzP}@Br96@b-y+$i>DAS3I9#y88Jgcdukl!J?gdlq9Uw7~?9+kT7-rBd1sZvA z1S2%HCif>uHQc_31^{K=?gb+glUx-hr-; z)`WmXCr;khMgS|i`<6i48O$SaU9ot_4`BBr{|?QCN2s+B+f`I>C@AFOFwmdDh&}cD zp~?ZjZ8-S0Eo~jC31SF)LtMlm{xB~s02Y(DNt2N^^nBE)~x9-VD-h${s<5_BaM;U3VV~&Jgbrb zG24r7yz3JQYX=)xlw&lr@v&Vz)80_iFT)RKfwDSQ^0du>)XEM#qiW+z1@nGbSwz(c zna?5fIWS*96^P?0;_Vigm$Q8B!_)c0g5EhbDPd$K?SE(N zA+f_bU)PG*^N_FiPd>LV4}VAf`2y=AvFY;Fl)ZeaJz`83J3{Rbc95R7%J0XYPp_BP z*Xw11T@xn?c8>Sv>AP=9ZnMS3jV`I%^br{!Pp1{q6md z`&)P@BD?7~nw7OEjF`&&ct4g^FavKJgGeoGJc3ojyF>RaHL;2Ygp%^J46oY^wMJXax2{j;9nsfnaf>H(P1XP;z4x-=%B^0IiE&@^%1cZ0+ zuD9OL_x(F(t+UUpGked>nQ!)<9zCrFq}LRKnW#st1q-4JO?5Hv+@4~w+!}dY50!=a z@|(JHo$4^VhACJ6(rT_U zFkX3tIRAHnqDDmB~ABZeq-fd;0wo7S6Me( zh|j+{!$Oa1BbcO)N4&Rnvoqh3)<*8W`?Wnw^MxJa@%cH_!ou~TZ=GfSB{>nc`%CTm zZ(YH$vR_ghp2bZ(IBro-H9g#gNRPMYb_cRKuiT{kOfy8o<<13_S1U`Civ_uU=c<;g zi;_d^^(BH~=LKAh=M^=_6d=69c}bGP9UcPJ%fiE~4mQT`i5)-b-715ZHm+h0+kieh zn|?XGMH{_{HL@!5fg4wMC}zKs(o8B-q-)ydD>*H1>>3>f&S3omfRVO6Ky7>h(|^;#1quQ1^>*7&)rX;V6){jr)PC_E2;ZDfX`D z3sc~oOM52Ef4|^v#f?r{ca0FNq-{S+Lqk9K`fyGLn)RY$jK|Ws&RCmByA49qUM4km zo~qaSC-VI?tw~+po=zUHZ#3uFy$pE^A5UCp`eib|*fV|nHoCoz0sg3V=}(#|^sd`rzxV5xcV4VWCz~aDVpJy-V}F%;3pr;6 zGouUBBo&+h-5`y7i*xqp1O$&p1+0F2AIA9n*5EZe13nufMr=fxa2e5u@>pR&v}&b` zhYvLFHDV_g-N<~Q={YG+x$|uuhm}dGxWPHAed9Mv^o+k8wo`$l<%1C*r}B?7C|LBp0@s7@3jhJ4ORH(PiiD zak)R_eWjGv|Mjfg9Gj{S*z}kGxWX>{)7b%xr-UUR4!QNp0)NyYU~@Du$kloTqwP@|`jk6< zn57eW>%)p;3CH`PHtf)LN>Z2mM%1NR%S$vyEg!52cMO($=?bm7FVXmc!G|?}c3V;u zH@|gXe8oy5Kef9BnyEe}96l-Ki#$@OY#8j;xM#+BxVWTBwft$|@m4JIP4SqiLVQDE zZf!(HiX>$!xiH7ng!GKdj>*CA8|z&7A!6E%b^R-MRYp-xMi-Ea6UuDlZ15c07^JHX z38@ABVoxMLd992(O1s;hk-xQ9`bgQL@x=FWJgeMSfA)jndd;_wx=VXR9JXC`ZwS7@5f{SL2b9kN)G zdL(eMR?5c)9YEPI8SDr zi59J5A)^I{>g*bALMgZ2TkPH|DL%|h zTxPBphDg=z+`gUqrAz8wU|*1PNbSNeld3x|ZQGRv9xi0j1gHL8Vza zybZg+t#85!x27Q0zylu#BkeW`fROn+EGS)h%5$zbZlco~(t~7njp_9BGQ)sHEN0Er z$#I~fLi=Z=&nlq#!`Rm|`Ygc?k;w2XEnz)CR>E0klQvFM%88DSD2#hx)#7JK$P5cc z*FCFjm`MB`x@`3}kikXo9=JJXI^oVP7J=&D(tdc84DS3kGd>_gUXhr-83Rgu@*?dE z_x+&s6cyMMSIx=Y9HQ2zH1@tC-)O9H-n&;HaRX^gk(?W<4f}WVnON}XwcW#;dH`H0 zK`yfk-GjkDfup=cCGK7 zS#3ETQH)ulrQeJw2-v)p%#|HOk`>QP&z%h zkiibkp0ix_A?50jcf^Pb)9TYFubmKw;)Yyq&sJma_^_qadQly0!XJKzm$Aez^QAUF zm3U=v%h9;-xMMl@H0i^sATK9J+G9XG`uY{t z63BV@!!E5Q#C`D+#@M!_v*Ule>*~?vZV$Y>rvHh2y zpGAo=V8)#2ZJ~|}^x!X@s zrwJc^V+*%EH~q>zy6KssM`}3MHRC)iwqUr(RU^J@}`yNcr*4 zGR3Is)&rr15iwim*hb#5ZXZELTC|MdhG43>x>H?HxPV*&5`=1TQ$=X~FB!H#@AbDoh zmaGP%o*Wn4&Ms4o-zs{{V4& z+xGxsNddW=LU+bkD(F4zUHpk6ZR^$(t`{n??Zxx>#qCB&E`f)sm~T|Hv>CywNvBh& zim2chY*|x7NbLB``k9IHI{dJ^2;@M7iU)jzMV3-lEQErGuR#piss%mY%k;7rUSO|c z>s$qy(g2Qw7bO|oOgrMp>c!FaS?DTHY!buVRuXCR5&c#cT`r5ab56(xk>{m@=;erb< z8r6Y4bU`;iH5RS1=_JiYq!vyh3{*tS*cgtS?d<)F&t>z23LWDlR zF7kItd7Cxk*bPwO9}tLMEg{s4TL|)oFy$hVh#GKLE4|a8npD?#uL6_|uQJ-$qR^yV z5kbKthRV#O{n=cF|@;mV!1p^=I}l=I`q876O#XSSK-8tHOM=QD$x9 zMw6tlyzzJzIg+8)Th6}p7~(pwbwI&<3B8=QEy{B6A&8ju)A8DoBm_mkZl@md++YYA z_3b3;OIJB(07nstXp(fOa)Mx@1YRkOIbwpXp@l&yFkSGYe4OALXFQsh_)f6u9R4bM z{??fh9K$4zLFa4EJOjdE_-^T3zVkJpa0$Ti6`vkks1swJT%Yhp%7+xR`{iaFQj%^Yq06oc2cFI zn+zCgdhi6F-yG&3GpHl$tWLN#!H|fe&Vm}MwFVFpD`R4=bJ%jXkPpw3Jo7)|s?G_) zHQOxJ?Tqq(16rl3(FP4)&c&@Dbz+RUxDVE5y??$LI5iE(CiByZ+_j@J$IE2(-@ zpan@Z1lqpx=w_pDfCm3bq_x~paQ!6(u(WLzgD~Be77cxAt_P!w&kV z8b}G}g-IaHx_kNrn|5Ke7Kf0MvJ>do?N;zaQ?S+C#!wSkt+*nAA_6ETKbHq(be3N~HU>)pg@Pv&S&9qrO4;)z zEpJQYg?0W;PUs|FDcBbXU4PQ2=5ps9{%pG}5@dIBXENyP*{aGL z=F(DKB>EV18}POk=FyQeHF0Y4@x1k^kWgt17lDpOn44zIwkge9yWrKvsfh>)*`x)G zgzSWikVf~09A+GR->>bIeXY$Z{5*3rw7#K6l-Wh2pj}MGtEGgiu<0Bo^0uty!FQ9l zC$Z$aH9vgM!Zl9K;W+QK!^7jqQ%UDPRnaWb(JT!T*yi2DxiUl=TLLdRzf)}&(43f} ztNiQN*W(FNQxe@B0gt>>vrn!=k29X8{wI$xKFa7%GAJ+6Yb@%x=z_t2N^b@RUJn|V zU+BvaztCcaB z^ig)5-4%~4}S{?PCYyjG3f#9=;?cbNH6<;2cEee o@;JFJ_Wv$B%uqA;{@+25Rm_vT;3P7^00clw Date: Mon, 21 Sep 2026 10:14:11 -0600 Subject: [PATCH 4/6] [kotlin][client] Register enumUnknownDefaultCase as a CliOption so it appears in config-help and the docs (#24977) * fix(kotlin): register enumUnknownDefaultCase as a CliOption enumUnknownDefaultCase has worked for the kotlin generator since it shipped in v5.3.1, but has never been advertised: it appears in neither `config-help -g kotlin` nor docs/generators/kotlin.md, so the only way to discover it is to read the generator source. Root cause: AbstractKotlinCodegen.java:308 calls cliOptions.clear() and re-adds only Kotlin-specific options, discarding the registration DefaultCodegen.java:2190 makes. DefaultCodegen.processOpts() still reads the key back from additionalProperties (DefaultCodegen.java:449), so the flag stayed functional while invisible. The clear() predates the flag by nearly four years (7cad47dd399, 2018-01-27 vs c305c717156, 2021-12-21), so Kotlin was never deliberately excluded. Registered on KotlinClientCodegen rather than AbstractKotlinCodegen because kotlin is the only Kotlin generator whose templates implement the fallback; kotlin-spring, kotlin-server, kotlin-vertx, kotlin-misk and kotlin-wiremock have zero references to it. Mirrors GoClientCodegen, which re-registers this same option after AbstractGoCodegen's clear(). docs/generators/kotlin.md regenerated with bin/utils/export_docs_generators.sh. No sample changes: the default is unchanged at false. Refs #12970 Co-Authored-By: Claude Opus 5 (1M context) * test(kotlin): guard the enumUnknownDefaultCase registration Adds a regression test asserting the option is present in KotlinClientCodegen.cliOptions(). The defect being fixed is an option silently disappearing from cliOptions, so without a test the same thing can happen again on the next refactor. Verified it discriminates: with the registration reverted it fails with "enumUnknownDefaultCase is not registered". Also shortens the `true` value description to "Each enum gains an `unknown_default_open_api` case." The previous wording promised that unrecognized values decode to it, which contradicts the option description directly above it - gson and multiplatform emit the case without decoding to it. Co-Authored-By: Claude Opus 5 (1M context) * refactor(kotlin): drop the redundant explicit default on the new option CliOption.newBoolean(opt, description) already delegates to the 3-arg overload with false, so .defaultValue(Boolean.FALSE.toString()) set what was already set. Matches this constructor's own convention: USE_JACKSON_3 and USE_NON_ASCII_HEADERS omit it, USE_RESPONSE_AS_RETURN_TYPE passes true explicitly because true is not the default. Docs output is unchanged. The regression test still asserts the default is false, so it now covers the implicit path too. Co-Authored-By: Claude Opus 5 (1M context) * docs(kotlin): make the enumUnknownDefaultCase caveat accurate per library The first wording claimed jackson and kotlinx_serialization decode unknown values to the fallback, and that gson and multiplatform "fail". Reading the templates, all three claims are wrong: - enum_class.mustache gates the jackson `decode()` fallback on {{^isNullable}}, so a nullable enum returns null. `decode()` carries @JsonCreator, so Jackson routes through it and never reaches the @JsonEnumDefaultValue / READ_UNKNOWN_ENUM_VALUES_USING_DEFAULT_VALUE path Serializer.kt configures. - The kotlinx_serialization KSerializer falls back only under {{#isString}}; {{^isString}} throws IllegalArgumentException, so integer enums still throw. - gson registers no enum adapter, so Gson's built-in returns null rather than failing - quieter than "fail" implies, and worse, since null is indistinguishable from an absent field. Also annotates `multiplatform` as (library) rather than leaving it inside a (serializationLibrary) clause - it is a library value, and line 300 of this file sets the convention of tagging each name with its own option. Test javadoc said the guard stops the option disappearing "again"; it never disappeared, it was never registered. Reworded. Co-Authored-By: Claude Opus 5 (1M context) * test(kotlin): use Set.of in the cliOption guard Set.of is already used across the test tree, including the kotlin package, and the target is Java 11. Drops the Arrays and HashSet imports. Co-Authored-By: Claude Opus 5 (1M context) --------- Co-authored-by: Claude Opus 5 (1M context) --- docs/generators/kotlin.md | 1 + .../codegen/languages/KotlinClientCodegen.java | 13 +++++++++++++ .../kotlin/KotlinClientCodegenModelTest.java | 18 ++++++++++++++++++ 3 files changed, 32 insertions(+) diff --git a/docs/generators/kotlin.md b/docs/generators/kotlin.md index a6268f931aa4..813ea5918b7a 100644 --- a/docs/generators/kotlin.md +++ b/docs/generators/kotlin.md @@ -25,6 +25,7 @@ These options may be applied as additional-properties (cli) or configOptions (pl |companionObject|Whether to generate companion objects in data classes, enabling companion extensions.| |false| |dateLibrary|Option. Date library to use|
**threetenbp-localdatetime**
Threetenbp - Backport of JSR310 (jvm only, for legacy app only)
**kotlinx-datetime**
kotlinx-datetime (preferred for multiplatform)
**string**
String
**java8-localdatetime**
Java 8 native JSR310 (jvm only, for legacy app only)
**java8**
Java 8 native JSR310 (jvm only, preferred for jdk 1.8+)
**threetenbp**
Threetenbp - Backport of JSR310 (jvm only, preferred for jdk < 1.8)
|java8| |enumPropertyNaming|Naming convention for enum properties: 'camelCase', 'PascalCase', 'snake_case', 'UPPERCASE', 'original', and 'bestEffortBacktick' (like 'original' but tries to wrap values in backticks before falling back to sanitizing, e.g. `name,asc` stays `name,asc` rather than becoming nameCommaAsc; useful for sort/order enums)| |original| +|enumUnknownDefaultCase|Add an `unknown_default_open_api` enum case as a fallback for unrecognized values. Only `moshi`(serializationLibrary) decodes every unknown value to it: `jackson` skips nullable enums, `kotlinx_serialization` skips non-string enums, and neither `gson`(serializationLibrary) nor `multiplatform`(library) decodes to it at all.|
**false**
No changes to the enums are made, this is the default option.
**true**
Each enum gains an `unknown_default_open_api` case.
|false| |explicitApi|Generates code with explicit access modifiers to comply with Kotlin Explicit API Mode.| |false| |failOnUnknownProperties|Fail Jackson de-serialization on unknown properties| |false| |generateOneOfAnyOfWrappers|Generate oneOf, anyOf schemas as wrappers. Only `jvm-retrofit2`(library) with `gson` or `kotlinx_serialization`(serializationLibrary) support this option.| |false| diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java index 3898d9a9dc88..90b3c8ad9bcf 100755 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/KotlinClientCodegen.java @@ -316,6 +316,19 @@ public KotlinClientCodegen() { cliOptions.add(CliOption.newBoolean(USE_RESPONSE_AS_RETURN_TYPE, "When using retrofit2 and coroutines, use `Response`<`T`> as return type instead of `T`.", true)); cliOptions.add(CliOption.newBoolean(USE_JACKSON_3, "Use Jackson 3 dependencies (tools.jackson package). Requires serializationLibrary=jackson. Incompatible with openApiNullable.")); + + // AbstractKotlinCodegen calls cliOptions.clear(), dropping DefaultCodegen's registration. + // Re-registered on kotlin alone: no other Kotlin generator's templates implement the fallback. + CliOption enumUnknownDefaultCaseOpt = CliOption.newBoolean( + CodegenConstants.ENUM_UNKNOWN_DEFAULT_CASE, + "Add an `unknown_default_open_api` enum case as a fallback for unrecognized values. Only `moshi`(serializationLibrary) decodes every unknown value to it: `jackson` skips nullable enums, `kotlinx_serialization` skips non-string enums, and neither `gson`(serializationLibrary) nor `multiplatform`(library) decodes to it at all."); + Map enumUnknownDefaultCaseOpts = new HashMap<>(); + enumUnknownDefaultCaseOpts.put("false", + "No changes to the enums are made, this is the default option."); + enumUnknownDefaultCaseOpts.put("true", + "Each enum gains an `unknown_default_open_api` case."); + enumUnknownDefaultCaseOpt.setEnum(enumUnknownDefaultCaseOpts); + cliOptions.add(enumUnknownDefaultCaseOpt); } @Override diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/KotlinClientCodegenModelTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/KotlinClientCodegenModelTest.java index 921cd035aeb4..dad52b7ae72b 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/KotlinClientCodegenModelTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/kotlin/KotlinClientCodegenModelTest.java @@ -42,6 +42,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Set; import static org.openapitools.codegen.CodegenConstants.*; import static org.openapitools.codegen.languages.KotlinClientCodegen.*; @@ -1505,4 +1506,21 @@ public void testNoDefaultImplWhenNeitherSourceIsSet() throws IOException { Assert.assertTrue(sawJsonTypeInfo, "Expected at least one generated model with @JsonTypeInfo to exercise the code path"); } + + /** + * AbstractKotlinCodegen calls cliOptions.clear(), so an option inherited from DefaultCodegen stays + * functional while vanishing from config-help and docs/generators/kotlin.md. That is how + * enumUnknownDefaultCase went undocumented for years; this guards the re-registration. + */ + @Test + public void testEnumUnknownDefaultCaseIsRegisteredAsCliOption() { + CliOption option = new KotlinClientCodegen().cliOptions().stream() + .filter(o -> CodegenConstants.ENUM_UNKNOWN_DEFAULT_CASE.equals(o.getOpt())) + .findFirst() + .orElse(null); + + Assert.assertNotNull(option, CodegenConstants.ENUM_UNKNOWN_DEFAULT_CASE + " is not registered"); + Assert.assertEquals(option.getDefault(), "false"); + Assert.assertEquals(option.getEnum().keySet(), Set.of("true", "false")); + } } From 41b3d639584f93cd05c1d4ab019c32b820c48fad Mon Sep 17 00:00:00 2001 From: Ori <47150013+KannaKim@users.noreply.github.com> Date: Mon, 21 Sep 2026 11:16:00 -0500 Subject: [PATCH 5/6] [Java][okhttp-gson] Fix UUID inner enum compilation (#24973) * Fix UUID serialization in okhttp-gson inner enums * Add runtime regression coverage for okhttp-gson UUID inner enums --- modules/openapi-generator/pom.xml | 6 + .../okhttp-gson/modelInnerEnum.mustache | 6 +- .../java/JavaOkHttpGsonUuidEnumTest.java | 112 ++++++++++++++++++ 3 files changed, 121 insertions(+), 3 deletions(-) create mode 100644 modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaOkHttpGsonUuidEnumTest.java diff --git a/modules/openapi-generator/pom.xml b/modules/openapi-generator/pom.xml index 57d62a2d6350..d8b11bdbf19f 100644 --- a/modules/openapi-generator/pom.xml +++ b/modules/openapi-generator/pom.xml @@ -280,6 +280,12 @@ + + com.google.code.gson + gson + 2.10.1 + test + ${swagger-parser-groupid.version} swagger-parser diff --git a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/modelInnerEnum.mustache b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/modelInnerEnum.mustache index 6d1035aae704..d0113c4978a1 100644 --- a/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/modelInnerEnum.mustache +++ b/modules/openapi-generator/src/main/resources/Java/libraries/okhttp-gson/modelInnerEnum.mustache @@ -49,18 +49,18 @@ public static class Adapter extends TypeAdapter<{{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}> { @Override public void write(final JsonWriter jsonWriter, final {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} enumeration) throws IOException { - jsonWriter.value(enumeration.getValue(){{#isUri}}.toASCIIString(){{/isUri}}); + jsonWriter.value(enumeration.getValue(){{#isUri}}.toASCIIString(){{/isUri}}{{#isUuid}}.toString(){{/isUuid}}); } @Override public {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}} read(final JsonReader jsonReader) throws IOException { - {{^isNumber}}{{{dataType}}}{{/isNumber}}{{#isNumber}}String{{/isNumber}} value = {{#isFloat}}(float){{/isFloat}} {{#isUri}}URI.create({{/isUri}}jsonReader.{{#isNumber}}nextString(){{/isNumber}}{{#isInteger}}nextInt(){{/isInteger}}{{#isUri}}nextString()){{/isUri}}{{^isNumber}}{{^isInteger}}{{^isUri}}{{#isFloat}}nextDouble{{/isFloat}}{{^isFloat}}next{{{dataType}}}{{/isFloat}}(){{/isUri}}{{/isInteger}}{{/isNumber}}; + {{^isNumber}}{{{dataType}}}{{/isNumber}}{{#isNumber}}String{{/isNumber}} value = {{#isFloat}}(float){{/isFloat}} {{#isUuid}}UUID.fromString({{/isUuid}}{{#isUri}}URI.create({{/isUri}}jsonReader.{{#isNumber}}nextString(){{/isNumber}}{{#isInteger}}nextInt(){{/isInteger}}{{#isUri}}nextString()){{/isUri}}{{#isUuid}}nextString()){{/isUuid}}{{^isNumber}}{{^isInteger}}{{^isUri}}{{^isUuid}}{{#isFloat}}nextDouble{{/isFloat}}{{^isFloat}}next{{{dataType}}}{{/isFloat}}(){{/isUuid}}{{/isUri}}{{/isInteger}}{{/isNumber}}; return {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{classname}}{{/datatypeWithEnum}}.fromValue({{#isNumber}}new BigDecimal({{/isNumber}}value{{#isNumber}}){{/isNumber}}); } } public static void validateJsonElement(JsonElement jsonElement) throws IOException { - {{^isNumber}}{{{dataType}}}{{/isNumber}}{{#isNumber}}String{{/isNumber}} value = {{#isUri}}URI.create({{/isUri}}jsonElement.{{#isNumber}}getAsString(){{/isNumber}}{{#isInteger}}getAsInt(){{/isInteger}}{{#isUri}}getAsString()){{/isUri}}{{^isNumber}}{{^isInteger}}{{^isUri}}getAs{{{dataType}}}(){{/isUri}}{{/isInteger}}{{/isNumber}}; + {{^isNumber}}{{{dataType}}}{{/isNumber}}{{#isNumber}}String{{/isNumber}} value = {{#isUuid}}UUID.fromString({{/isUuid}}{{#isUri}}URI.create({{/isUri}}jsonElement.{{#isNumber}}getAsString(){{/isNumber}}{{#isInteger}}getAsInt(){{/isInteger}}{{#isUri}}getAsString()){{/isUri}}{{#isUuid}}getAsString()){{/isUuid}}{{^isNumber}}{{^isInteger}}{{^isUri}}{{^isUuid}}getAs{{{dataType}}}(){{/isUuid}}{{/isUri}}{{/isInteger}}{{/isNumber}}; {{{datatypeWithEnum}}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.fromValue({{#isNumber}}new BigDecimal({{/isNumber}}value{{#isNumber}}){{/isNumber}}); } } diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaOkHttpGsonUuidEnumTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaOkHttpGsonUuidEnumTest.java new file mode 100644 index 000000000000..4ca42d4a4497 --- /dev/null +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/java/JavaOkHttpGsonUuidEnumTest.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 OpenAPI-Generator Contributors (https://openapi-generator.tech) + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.openapitools.codegen.java; + +import com.github.javaparser.StaticJavaParser; +import com.github.javaparser.ast.body.EnumDeclaration; +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonPrimitive; +import org.openapitools.codegen.DefaultGenerator; +import org.openapitools.codegen.config.CodegenConfigurator; +import org.testng.annotations.DataProvider; +import org.testng.annotations.Test; + +import javax.tools.ToolProvider; +import java.io.ByteArrayOutputStream; +import java.io.File; +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.net.URL; +import java.net.URLClassLoader; +import java.nio.charset.StandardCharsets; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; + +import static org.openapitools.codegen.TestUtils.newTempFolder; +import static org.testng.Assert.*; + +public class JavaOkHttpGsonUuidEnumTest { + + @DataProvider + public Object[][] caseInsensitiveOptions() { + return new Object[][]{{false}, {true}}; + } + + @Test(dataProvider = "caseInsensitiveOptions") + public void testUuidEnumGsonRoundTrip(boolean caseInsensitive) throws Exception { + Path output = newTempFolder(); + CodegenConfigurator configurator = new CodegenConfigurator() + .setGeneratorName("java") + .setLibrary("okhttp-gson") + .setInputSpec("src/test/resources/3_0/issue_20952_inner_enum_comparison.yaml") + .setOutputDir(output.toString()) + .addGlobalProperty("models", "") + .addGlobalProperty("modelDocs", "false") + .addGlobalProperty("modelTests", "false") + .addAdditionalProperty("useEnumCaseInsensitive", caseInsensitive); + File model = new DefaultGenerator().opts(configurator.toClientOptInput()).generate().stream() + .filter(file -> file.getName().equals("Example.java")) + .findFirst().orElseThrow(() -> new AssertionError("Example.java was not generated")); + EnumDeclaration uuidEnum = StaticJavaParser.parse(model).findAll(EnumDeclaration.class).stream() + .filter(declaration -> declaration.getNameAsString().equals("UuidEnum")) + .findFirst().orElseThrow(() -> new AssertionError("UuidEnum was not generated")); + + // Compile the complete generated enum, including its Gson adapter and validation method. + // Only the enclosing model and its unrelated client dependencies are omitted. + Path runtime = Files.createDirectory(output.resolve("runtime")); + Path fixture = runtime.resolve("EnumFixture.java"); + Files.writeString(fixture, "import com.google.gson.*;\n" + + "import com.google.gson.annotations.JsonAdapter;\n" + + "import com.google.gson.stream.*;\n" + + "import java.io.IOException;\n" + + "import java.util.UUID;\n" + + "public class EnumFixture {\n" + uuidEnum + "\n}\n"); + String gsonClasspath = Paths.get(Gson.class.getProtectionDomain().getCodeSource().getLocation().toURI()).toString(); + ByteArrayOutputStream diagnostics = new ByteArrayOutputStream(); + assertNotNull(ToolProvider.getSystemJavaCompiler(), "Runtime regression tests require a JDK"); + int result = ToolProvider.getSystemJavaCompiler().run(null, diagnostics, diagnostics, + "-classpath", gsonClasspath, "-d", runtime.toString(), fixture.toString()); + assertEquals(result, 0, diagnostics.toString(StandardCharsets.UTF_8)); + + try (URLClassLoader loader = new URLClassLoader(new URL[]{runtime.toUri().toURL()}, getClass().getClassLoader())) { + Class enumClass = loader.loadClass("EnumFixture$UuidEnum"); + Method validate = enumClass.getMethod("validateJsonElement", JsonElement.class); + Gson gson = new Gson(); + String[] values = { + "123e4567-e89b-12d3-a456-426614174000", + "123e4567-e89b-12d3-a456-426614174001" + }; + Object[] constants = enumClass.getEnumConstants(); + assertEquals(constants.length, values.length); + for (int i = 0; i < values.length; i++) { + String json = "\"" + values[i] + "\""; + assertEquals(gson.toJson(constants[i]), json); + assertSame(gson.fromJson(json, enumClass), constants[i]); + validate.invoke(null, new JsonPrimitive(values[i])); + } + for (String invalid : new String[]{"not-a-uuid", "123e4567-e89b-12d3-a456-426614174002"}) { + expectThrows(IllegalArgumentException.class, + () -> gson.fromJson(new JsonPrimitive(invalid), enumClass)); + InvocationTargetException exception = expectThrows(InvocationTargetException.class, + () -> validate.invoke(null, new JsonPrimitive(invalid))); + assertTrue(exception.getCause() instanceof IllegalArgumentException, + "Validation should reject malformed or unknown UUIDs: " + exception.getCause()); + } + } + } +} From e2d02e8817984e5c41820fd274834400bfe50534 Mon Sep 17 00:00:00 2001 From: dsteeley <89448114+dsteeley@users.noreply.github.com> Date: Mon, 21 Sep 2026 17:53:19 +0100 Subject: [PATCH 6/6] fix(rust-server): Pass content-type when returning any response with content. (#24963) --- .../server-operation-handler.mustache | 16 ++ .../server-request-body-basic.mustache | 3 + ...erver-request-body-multipart-form.mustache | 8 + ...er-request-body-multipart-related.mustache | 4 + .../output/multipart-v3/src/server/mod.rs | 32 +++ .../output/no-example-v3/src/server/mod.rs | 7 + .../output/openapi-v3/src/client/callbacks.rs | 9 + .../output/openapi-v3/src/server/mod.rs | 188 ++++++++++++++ .../output/ops-v3/src/server/mod.rs | 148 +++++++++++ .../src/server/mod.rs | 5 + .../src/server/mod.rs | 245 ++++++++++++++++++ .../output/ping-bearer-auth/src/server/mod.rs | 5 + .../output/rust-server-test/src/server/mod.rs | 48 ++++ 13 files changed, 718 insertions(+) diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-operation-handler.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-operation-handler.mustache index ca1a9880e168..4e5c36c6dc06 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-operation-handler.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-operation-handler.mustache @@ -38,6 +38,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -56,6 +57,7 @@ where let missing_scopes = required_scopes.difference(scopes); return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(missing_scopes.fold( "Insufficient authorization, missing scopes".to_string(), |s, scope| format!("{s} {scope}")) @@ -88,11 +90,13 @@ where Ok(param_{{{paramName}}}) => param_{{{paramName}}}, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter {{{baseName}}}: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["{{{baseName}}}"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -121,6 +125,7 @@ where Err(err) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Invalid header {{{baseName}}} - {err}"))) .expect("Unable to create Bad Request response for invalid header {{{baseName}}}")); @@ -130,6 +135,7 @@ where {{#required}} return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required header {{{baseName}}}")) .expect("Unable to create Bad Request response for missing required header {{{baseName}}}")); {{/required}} @@ -171,6 +177,7 @@ where Ok(param_{{{paramName}}}) => Some(param_{{{paramName}}}), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter {{{baseName}}} - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter {{{baseName}}}")), } @@ -182,6 +189,7 @@ where Some(param_{{{paramName}}}) => param_{{{paramName}}}, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required query parameter {{{baseName}}}")) .expect("Unable to create Bad Request response for missing query parameter {{{baseName}}}")), }; @@ -204,6 +212,7 @@ where Ok(param_{{{paramName}}}) => Some(param_{{{paramName}}}), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter {{{baseName}}} - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter {{{baseName}}}")), } @@ -215,6 +224,7 @@ where Some(param_{{{paramName}}}) => param_{{{paramName}}}, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required query parameter {{{baseName}}}")) .expect("Unable to create Bad Request response for missing query parameter {{{baseName}}}")), }; @@ -318,6 +328,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("An internal server error occurred handling {{name}} header - {e}"))) .expect("Unable to create Internal Server Error for invalid response header")) } @@ -340,6 +351,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -349,6 +364,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-basic.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-basic.mustache index a0a856623de0..323d2c1f4d1a 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-basic.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-basic.mustache @@ -15,6 +15,7 @@ Ok(param_{{{paramName}}}) => param_{{{paramName}}}, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter {{{baseName}}} - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter {{{baseName}}} due to schema")), } @@ -39,6 +40,7 @@ Ok(param_{{{paramName}}}) => Some(param_{{{paramName}}}), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter {{{baseName}}} - not valid UTF-8: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter {{{baseName}}} due to UTF-8")), } @@ -53,6 +55,7 @@ Some(param_{{{paramName}}}) => param_{{{paramName}}}, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter {{{baseName}}}".to_string())) .expect("Unable to create Bad Request response for missing body parameter {{{baseName}}}")), }; diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache index 79ba09b5ac42..720c789080a8 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-form.mustache @@ -2,6 +2,7 @@ Some(boundary) => boundary.to_string(), None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Couldn't find valid multipart body".to_string())) .expect("Unable to create Bad Request response for incorrect boundary")), }; @@ -20,30 +21,35 @@ SaveResult::Partial(_, PartialReason::CountLimit) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Unable to process message part due to excessive parts".to_string())) .expect("Unable to create Bad Request response due to excessive parts")) }, SaveResult::Partial(_, PartialReason::SizeLimit) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Unable to process message part due to excessive data".to_string())) .expect("Unable to create Bad Request response due to excessive data")) }, SaveResult::Partial(_, PartialReason::Utf8Error(_)) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Unable to process message part due to invalid data".to_string())) .expect("Unable to create Bad Request response due to invalid data")) }, SaveResult::Partial(_, PartialReason::IoError(_)) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Failed to process message part due an internal error".to_string())) .expect("Unable to create Internal Server Error response due to an internal error")) }, SaveResult::Error(e) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Failed to process all message parts due to an internal error".to_string())) .expect("Unable to create Internal Server Error response due to an internal error")) }, @@ -71,6 +77,7 @@ return Ok( Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("{{{paramName}}} data does not match API definition : {e}"))) .expect("Unable to create Bad Request due to missing required form parameter {{{paramName}}}")) } @@ -87,6 +94,7 @@ return Ok( Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required form parameter {{{paramName}}}".to_string())) .expect("Unable to create Bad Request due to missing required form parameter {{{paramName}}}")) {{/required}} diff --git a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-related.mustache b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-related.mustache index 9d72305b32dd..0ebadfbd20e3 100644 --- a/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-related.mustache +++ b/modules/openapi-generator/src/main/resources/rust-server/server-request-body-multipart-related.mustache @@ -6,6 +6,7 @@ Err(e) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(e.to_string())) .expect("Unable to create Bad Request response due to unable to read content-type header for {{operationId}}")); } @@ -18,6 +19,7 @@ Err(e) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Could not read multipart body for {{operationId}}: {e}"))) .expect("Unable to create Bad Request response due to unable to read multipart body for {{operationId}}")); } @@ -43,6 +45,7 @@ Ok(json_data) => json_data, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter {{dataType}} - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter {{dataType}} due to schema")) }; @@ -79,6 +82,7 @@ Some(x) => x, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required multipart/related parameter {{{paramName}}}".to_string())) .expect("Unable to create Bad Request response for missing multipart/related parameter {{{paramName}}} due to schema")) }; diff --git a/samples/server/petstore/rust-server/output/multipart-v3/src/server/mod.rs b/samples/server/petstore/rust-server/output/multipart-v3/src/server/mod.rs index 0ba89c7485d9..1e24c1f74b0e 100644 --- a/samples/server/petstore/rust-server/output/multipart-v3/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/multipart-v3/src/server/mod.rs @@ -318,6 +318,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(e.to_string())) .expect("Unable to create Bad Request response due to unable to read content-type header for MultipartRelatedRequestPost")); } @@ -330,6 +331,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Could not read multipart body for MultipartRelatedRequestPost: {e}"))) .expect("Unable to create Bad Request response due to unable to read multipart body for MultipartRelatedRequestPost")); } @@ -353,6 +355,7 @@ where Ok(json_data) => json_data, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter models::MultipartRequestObjectField - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter models::MultipartRequestObjectField due to schema")) }; @@ -384,6 +387,7 @@ where Some(x) => x, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required multipart/related parameter required_binary_field".to_string())) .expect("Unable to create Bad Request response for missing multipart/related parameter required_binary_field due to schema")) }; @@ -418,6 +422,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -426,6 +434,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -458,6 +467,7 @@ where Some(boundary) => boundary.to_string(), None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Couldn't find valid multipart body".to_string())) .expect("Unable to create Bad Request response for incorrect boundary")), }; @@ -476,30 +486,35 @@ where SaveResult::Partial(_, PartialReason::CountLimit) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Unable to process message part due to excessive parts".to_string())) .expect("Unable to create Bad Request response due to excessive parts")) }, SaveResult::Partial(_, PartialReason::SizeLimit) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Unable to process message part due to excessive data".to_string())) .expect("Unable to create Bad Request response due to excessive data")) }, SaveResult::Partial(_, PartialReason::Utf8Error(_)) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Unable to process message part due to invalid data".to_string())) .expect("Unable to create Bad Request response due to invalid data")) }, SaveResult::Partial(_, PartialReason::IoError(_)) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Failed to process message part due an internal error".to_string())) .expect("Unable to create Internal Server Error response due to an internal error")) }, SaveResult::Error(e) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Failed to process all message parts due to an internal error".to_string())) .expect("Unable to create Internal Server Error response due to an internal error")) }, @@ -516,6 +531,7 @@ where return Ok( Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("string_field data does not match API definition : {e}"))) .expect("Unable to create Bad Request due to missing required form parameter string_field")) } @@ -526,6 +542,7 @@ where return Ok( Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required form parameter string_field".to_string())) .expect("Unable to create Bad Request due to missing required form parameter string_field")) } @@ -543,6 +560,7 @@ where return Ok( Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("optional_string_field data does not match API definition : {e}"))) .expect("Unable to create Bad Request due to missing required form parameter optional_string_field")) } @@ -567,6 +585,7 @@ where return Ok( Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("object_field data does not match API definition : {e}"))) .expect("Unable to create Bad Request due to missing required form parameter object_field")) } @@ -590,6 +609,7 @@ where return Ok( Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required form parameter binary_field".to_string())) .expect("Unable to create Bad Request due to missing required form parameter binary_field")) } @@ -620,6 +640,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -628,6 +652,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -665,6 +690,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(e.to_string())) .expect("Unable to create Bad Request response due to unable to read content-type header for MultipleIdenticalMimeTypesPost")); } @@ -677,6 +703,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Could not read multipart body for MultipleIdenticalMimeTypesPost: {e}"))) .expect("Unable to create Bad Request response due to unable to read multipart body for MultipleIdenticalMimeTypesPost")); } @@ -740,6 +767,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -748,6 +779,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } diff --git a/samples/server/petstore/rust-server/output/no-example-v3/src/server/mod.rs b/samples/server/petstore/rust-server/output/no-example-v3/src/server/mod.rs index 301b00356fbc..1f967d71905f 100644 --- a/samples/server/petstore/rust-server/output/no-example-v3/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/no-example-v3/src/server/mod.rs @@ -268,6 +268,7 @@ where Ok(param_op_get_request) => param_op_get_request, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter OpGetRequest - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter OpGetRequest due to schema")), } @@ -279,6 +280,7 @@ where Some(param_op_get_request) => param_op_get_request, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter OpGetRequest".to_string())) .expect("Unable to create Bad Request response for missing body parameter OpGetRequest")), }; @@ -313,6 +315,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -321,6 +327,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } diff --git a/samples/server/petstore/rust-server/output/openapi-v3/src/client/callbacks.rs b/samples/server/petstore/rust-server/output/openapi-v3/src/client/callbacks.rs index 963414318c2e..ebce98be1385 100644 --- a/samples/server/petstore/rust-server/output/openapi-v3/src/client/callbacks.rs +++ b/samples/server/petstore/rust-server/output/openapi-v3/src/client/callbacks.rs @@ -292,6 +292,7 @@ where Err(err) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Invalid header Information - {err}"))) .expect("Unable to create Bad Request response for invalid header Information")); @@ -325,6 +326,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -380,6 +385,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } diff --git a/samples/server/petstore/rust-server/output/openapi-v3/src/server/mod.rs b/samples/server/petstore/rust-server/output/openapi-v3/src/server/mod.rs index 98631aeb469a..a28b2189f240 100644 --- a/samples/server/petstore/rust-server/output/openapi-v3/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/openapi-v3/src/server/mod.rs @@ -627,6 +627,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -663,6 +667,7 @@ where Ok(param_url) => Some(param_url), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter url - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter url")), } @@ -673,6 +678,7 @@ where Some(param_url) => param_url, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required query parameter url")) .expect("Unable to create Bad Request response for missing query parameter url")), }; @@ -699,6 +705,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -755,6 +765,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -818,6 +832,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -876,6 +894,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -884,6 +906,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -918,6 +941,7 @@ where Ok(param_iambool) => Some(param_iambool), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter iambool - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter iambool")), } @@ -928,6 +952,7 @@ where Some(param_iambool) => param_iambool, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required query parameter iambool")) .expect("Unable to create Bad Request response for missing query parameter iambool")), }; @@ -954,6 +979,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -990,6 +1019,7 @@ where Ok(param_list_of_strings) => Some(param_list_of_strings), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter list-of-strings - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter list-of-strings")), } @@ -1019,6 +1049,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1052,6 +1086,7 @@ where Err(err) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Invalid header X-Header - {err}"))) .expect("Unable to create Bad Request response for invalid header X-Header")); @@ -1060,6 +1095,7 @@ where None => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required header X-Header")) .expect("Unable to create Bad Request response for missing required header X-Header")); } @@ -1087,6 +1123,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1138,6 +1178,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1259,6 +1303,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1287,6 +1335,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -1302,6 +1351,7 @@ where let missing_scopes = required_scopes.difference(scopes); return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(missing_scopes.fold( "Insufficient authorization, missing scopes".to_string(), |s, scope| format!("{s} {scope}")) @@ -1333,6 +1383,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1372,6 +1426,7 @@ where Ok(param_object_param) => param_object_param, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter ObjectParam - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter ObjectParam due to schema")), } @@ -1383,6 +1438,7 @@ where Some(param_object_param) => param_object_param, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter ObjectParam".to_string())) .expect("Unable to create Bad Request response for missing body parameter ObjectParam")), }; @@ -1447,6 +1503,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1455,6 +1515,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -1504,6 +1565,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1548,6 +1613,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1584,6 +1653,7 @@ where Ok(param_uuid) => Some(param_uuid), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter uuid - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter uuid")), } @@ -1601,6 +1671,7 @@ where Ok(param_some_object) => Some(param_some_object), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter someObject - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter someObject")), } @@ -1620,6 +1691,7 @@ where Ok(param_some_list) => Some(param_some_list), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter someList - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter someList")), } @@ -1660,6 +1732,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1696,6 +1772,7 @@ where Ok(param_required_no_example) => Some(param_required_no_example), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter required_no_example - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter required_no_example")), } @@ -1706,6 +1783,7 @@ where Some(param_required_no_example) => param_required_no_example, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required query parameter required_no_example")) .expect("Unable to create Bad Request response for missing query parameter required_no_example")), }; @@ -1720,6 +1798,7 @@ where Ok(param_required_with_example) => Some(param_required_with_example), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter required_with_example - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter required_with_example")), } @@ -1730,6 +1809,7 @@ where Some(param_required_with_example) => param_required_with_example, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required query parameter required_with_example")) .expect("Unable to create Bad Request response for missing query parameter required_with_example")), }; @@ -1757,6 +1837,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1785,6 +1869,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -1799,6 +1884,7 @@ where let missing_scopes = required_scopes.difference(scopes); return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(missing_scopes.fold( "Insufficient authorization, missing scopes".to_string(), |s, scope| format!("{s} {scope}")) @@ -1830,6 +1916,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1866,6 +1956,7 @@ where Ok(param_url) => Some(param_url), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter url - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter url")), } @@ -1876,6 +1967,7 @@ where Some(param_url) => param_url, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required query parameter url")) .expect("Unable to create Bad Request response for missing query parameter url")), }; @@ -1902,6 +1994,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1940,6 +2036,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -1966,6 +2063,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1974,6 +2075,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -2010,6 +2112,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -2036,6 +2139,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2044,6 +2151,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -2091,6 +2199,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("An internal server error occurred handling success_info header - {e}"))) .expect("Unable to create Internal Server Error for invalid response header")) } @@ -2107,6 +2216,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("An internal server error occurred handling bool_header header - {e}"))) .expect("Unable to create Internal Server Error for invalid response header")) } @@ -2124,6 +2234,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("An internal server error occurred handling object_header header - {e}"))) .expect("Unable to create Internal Server Error for invalid response header")) } @@ -2156,6 +2267,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("An internal server error occurred handling further_info header - {e}"))) .expect("Unable to create Internal Server Error for invalid response header")) } @@ -2173,6 +2285,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("An internal server error occurred handling failure_info header - {e}"))) .expect("Unable to create Internal Server Error for invalid response header")) } @@ -2190,6 +2303,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2265,6 +2382,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2298,6 +2419,7 @@ where Err(err) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Invalid header x-header-one - {err}"))) .expect("Unable to create Bad Request response for invalid header x-header-one")); @@ -2316,6 +2438,7 @@ where Err(err) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Invalid header x-header-two - {err}"))) .expect("Unable to create Bad Request response for invalid header x-header-two")); @@ -2349,6 +2472,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2420,6 +2547,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2428,6 +2559,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -2477,6 +2609,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2553,6 +2689,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2561,6 +2701,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -2645,6 +2786,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2653,6 +2798,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -2727,6 +2873,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2735,6 +2885,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -2809,6 +2960,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2817,6 +2972,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -2891,6 +3047,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2899,6 +3059,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -2934,11 +3095,13 @@ where Ok(param_path_param) => param_path_param, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter path_param: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["path_param"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -2965,6 +3128,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3002,11 +3169,13 @@ where Ok(param_path_param_a) => param_path_param_a, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter path_param_a: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["path_param_a"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -3016,11 +3185,13 @@ where Ok(param_path_param_b) => param_path_param_b, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter path_param_b: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["path_param_b"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -3048,6 +3219,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3087,6 +3262,7 @@ where Ok(param_object_param) => param_object_param, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter ObjectParam - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter ObjectParam due to schema")), } @@ -3098,6 +3274,7 @@ where Some(param_object_param) => param_object_param, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter ObjectParam".to_string())) .expect("Unable to create Bad Request response for missing body parameter ObjectParam")), }; @@ -3132,6 +3309,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3140,6 +3321,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -3175,11 +3357,13 @@ where Ok(param_repo_id) => param_repo_id, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter repoId: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["repoId"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -3213,6 +3397,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } diff --git a/samples/server/petstore/rust-server/output/ops-v3/src/server/mod.rs b/samples/server/petstore/rust-server/output/ops-v3/src/server/mod.rs index a2bb94a0b38f..1ba53359dc34 100644 --- a/samples/server/petstore/rust-server/output/ops-v3/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/ops-v3/src/server/mod.rs @@ -597,6 +597,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -641,6 +645,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -685,6 +693,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -729,6 +741,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -773,6 +789,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -817,6 +837,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -861,6 +885,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -905,6 +933,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -949,6 +981,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -993,6 +1029,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1037,6 +1077,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1081,6 +1125,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1125,6 +1173,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1169,6 +1221,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1213,6 +1269,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1257,6 +1317,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1301,6 +1365,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1345,6 +1413,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1389,6 +1461,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1433,6 +1509,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1477,6 +1557,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1521,6 +1605,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1565,6 +1653,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1609,6 +1701,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1653,6 +1749,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1697,6 +1797,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1741,6 +1845,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1785,6 +1893,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1829,6 +1941,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1873,6 +1989,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1917,6 +2037,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1961,6 +2085,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2005,6 +2133,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2049,6 +2181,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2093,6 +2229,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2137,6 +2277,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2181,6 +2325,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } diff --git a/samples/server/petstore/rust-server/output/overlapping-auth-schemes/src/server/mod.rs b/samples/server/petstore/rust-server/output/overlapping-auth-schemes/src/server/mod.rs index 701c40d5f073..4ac45199b594 100644 --- a/samples/server/petstore/rust-server/output/overlapping-auth-schemes/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/overlapping-auth-schemes/src/server/mod.rs @@ -257,6 +257,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -283,6 +284,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } diff --git a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs index dccb0da9b543..a1ebadb2ca9f 100644 --- a/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/petstore-with-fake-endpoints-models-for-testing/src/server/mod.rs @@ -612,6 +612,7 @@ where Ok(param_body) => param_body, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to schema")), } @@ -623,6 +624,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -664,6 +666,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -672,6 +678,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -715,6 +722,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -794,6 +805,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -802,6 +817,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -879,6 +895,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -887,6 +907,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -964,6 +985,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -972,6 +997,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -1049,6 +1075,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1057,6 +1087,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -1100,6 +1131,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1137,6 +1172,7 @@ where Ok(param_query) => Some(param_query), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter query - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter query")), } @@ -1147,6 +1183,7 @@ where Some(param_query) => param_query, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required query parameter query")) .expect("Unable to create Bad Request response for missing query parameter query")), }; @@ -1167,6 +1204,7 @@ where Ok(param_body) => param_body, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to schema")), } @@ -1178,6 +1216,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -1213,6 +1252,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1221,6 +1264,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -1259,6 +1303,7 @@ where Ok(param_body) => param_body, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to schema")), } @@ -1270,6 +1315,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -1311,6 +1357,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1319,6 +1369,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -1346,6 +1397,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -1427,6 +1479,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1435,6 +1491,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -1467,6 +1524,7 @@ where Err(err) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Invalid header enum_header_string_array - {err}"))) .expect("Unable to create Bad Request response for invalid header enum_header_string_array")); @@ -1485,6 +1543,7 @@ where Err(err) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Invalid header enum_header_string - {err}"))) .expect("Unable to create Bad Request response for invalid header enum_header_string")); @@ -1516,6 +1575,7 @@ where Ok(param_enum_query_string) => Some(param_enum_query_string), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter enum_query_string - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter enum_query_string")), } @@ -1535,6 +1595,7 @@ where Ok(param_enum_query_integer) => Some(param_enum_query_integer), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter enum_query_integer - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter enum_query_integer")), } @@ -1554,6 +1615,7 @@ where Ok(param_enum_query_double) => Some(param_enum_query_double), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter enum_query_double - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter enum_query_double")), } @@ -1606,6 +1668,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1614,6 +1680,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -1652,6 +1719,7 @@ where Ok(param_param) => param_param, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter param - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter param due to schema")), } @@ -1663,6 +1731,7 @@ where Some(param_param) => param_param, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter param".to_string())) .expect("Unable to create Bad Request response for missing body parameter param")), }; @@ -1695,6 +1764,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1703,6 +1776,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -1760,6 +1834,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1768,6 +1846,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -1804,11 +1883,13 @@ where Ok(param_hyphen_param) => param_hyphen_param, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter hyphen-param: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["hyphen-param"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -1835,6 +1916,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1864,6 +1949,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -1885,6 +1971,7 @@ where Ok(param_body) => param_body, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to schema")), } @@ -1896,6 +1983,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -1937,6 +2025,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -1945,6 +2037,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -1972,6 +2065,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -1987,6 +2081,7 @@ where let missing_scopes = required_scopes.difference(scopes); return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(missing_scopes.fold( "Insufficient authorization, missing scopes".to_string(), |s, scope| format!("{s} {scope}")) @@ -2013,6 +2108,7 @@ where Ok(param_body) => param_body, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to schema")), } @@ -2024,6 +2120,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -2058,6 +2155,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2066,6 +2167,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -2093,6 +2195,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -2108,6 +2211,7 @@ where let missing_scopes = required_scopes.difference(scopes); return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(missing_scopes.fold( "Insufficient authorization, missing scopes".to_string(), |s, scope| format!("{s} {scope}")) @@ -2170,6 +2274,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2199,6 +2307,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -2214,6 +2323,7 @@ where let missing_scopes = required_scopes.difference(scopes); return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(missing_scopes.fold( "Insufficient authorization, missing scopes".to_string(), |s, scope| format!("{s} {scope}")) @@ -2276,6 +2386,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2305,6 +2419,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -2320,6 +2435,7 @@ where let missing_scopes = required_scopes.difference(scopes); return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(missing_scopes.fold( "Insufficient authorization, missing scopes".to_string(), |s, scope| format!("{s} {scope}")) @@ -2346,6 +2462,7 @@ where Ok(param_body) => param_body, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to schema")), } @@ -2357,6 +2474,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -2401,6 +2519,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2409,6 +2531,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -2436,6 +2559,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -2451,6 +2575,7 @@ where let missing_scopes = required_scopes.difference(scopes); return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(missing_scopes.fold( "Insufficient authorization, missing scopes".to_string(), |s, scope| format!("{s} {scope}")) @@ -2475,11 +2600,13 @@ where Ok(param_pet_id) => param_pet_id, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter petId: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["petId"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -2494,6 +2621,7 @@ where Err(err) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Invalid header api_key - {err}"))) .expect("Unable to create Bad Request response for invalid header api_key")); @@ -2527,6 +2655,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2556,6 +2688,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -2575,11 +2708,13 @@ where Ok(param_pet_id) => param_pet_id, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter petId: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["petId"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -2635,6 +2770,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2664,6 +2803,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -2679,6 +2819,7 @@ where let missing_scopes = required_scopes.difference(scopes); return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(missing_scopes.fold( "Insufficient authorization, missing scopes".to_string(), |s, scope| format!("{s} {scope}")) @@ -2703,11 +2844,13 @@ where Ok(param_pet_id) => param_pet_id, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter petId: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["petId"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -2748,6 +2891,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2756,6 +2903,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -2783,6 +2931,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -2798,6 +2947,7 @@ where let missing_scopes = required_scopes.difference(scopes); return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(missing_scopes.fold( "Insufficient authorization, missing scopes".to_string(), |s, scope| format!("{s} {scope}")) @@ -2822,11 +2972,13 @@ where Ok(param_pet_id) => param_pet_id, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter petId: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["petId"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -2841,6 +2993,7 @@ where Some(boundary) => boundary.to_string(), None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Couldn't find valid multipart body".to_string())) .expect("Unable to create Bad Request response for incorrect boundary")), }; @@ -2859,30 +3012,35 @@ where SaveResult::Partial(_, PartialReason::CountLimit) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Unable to process message part due to excessive parts".to_string())) .expect("Unable to create Bad Request response due to excessive parts")) }, SaveResult::Partial(_, PartialReason::SizeLimit) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Unable to process message part due to excessive data".to_string())) .expect("Unable to create Bad Request response due to excessive data")) }, SaveResult::Partial(_, PartialReason::Utf8Error(_)) => { return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Unable to process message part due to invalid data".to_string())) .expect("Unable to create Bad Request response due to invalid data")) }, SaveResult::Partial(_, PartialReason::IoError(_)) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Failed to process message part due an internal error".to_string())) .expect("Unable to create Internal Server Error response due to an internal error")) }, SaveResult::Error(e) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Failed to process all message parts due to an internal error".to_string())) .expect("Unable to create Internal Server Error response due to an internal error")) }, @@ -2900,6 +3058,7 @@ where return Ok( Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("additional_metadata data does not match API definition : {e}"))) .expect("Unable to create Bad Request due to missing required form parameter additional_metadata")) } @@ -2924,6 +3083,7 @@ where return Ok( Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("file data does not match API definition : {e}"))) .expect("Unable to create Bad Request due to missing required form parameter file")) } @@ -2967,6 +3127,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -2975,6 +3139,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -3002,6 +3167,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -3035,6 +3201,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3075,6 +3245,7 @@ where Ok(param_body) => param_body, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to schema")), } @@ -3086,6 +3257,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -3144,6 +3316,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3152,6 +3328,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -3188,11 +3365,13 @@ where Ok(param_order_id) => param_order_id, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter order_id: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["order_id"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -3224,6 +3403,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3262,11 +3445,13 @@ where Ok(param_order_id) => param_order_id, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter order_id: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["order_id"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -3322,6 +3507,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3362,6 +3551,7 @@ where Ok(param_body) => param_body, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to schema")), } @@ -3373,6 +3563,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -3407,6 +3598,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3415,6 +3610,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -3453,6 +3649,7 @@ where Ok(param_body) => param_body, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to schema")), } @@ -3464,6 +3661,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -3498,6 +3696,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3506,6 +3708,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -3544,6 +3747,7 @@ where Ok(param_body) => param_body, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to schema")), } @@ -3555,6 +3759,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -3589,6 +3794,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3597,6 +3806,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -3632,6 +3842,7 @@ where Ok(param_username) => Some(param_username), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter username - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter username")), } @@ -3642,6 +3853,7 @@ where Some(param_username) => param_username, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required query parameter username")) .expect("Unable to create Bad Request response for missing query parameter username")), }; @@ -3656,6 +3868,7 @@ where Ok(param_password) => Some(param_password), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse query parameter password - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid query parameter password")), } @@ -3666,6 +3879,7 @@ where Some(param_password) => param_password, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Missing required query parameter password")) .expect("Unable to create Bad Request response for missing query parameter password")), }; @@ -3698,6 +3912,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("An internal server error occurred handling x_rate_limit header - {e}"))) .expect("Unable to create Internal Server Error for invalid response header")) } @@ -3715,6 +3930,7 @@ where Err(e) => { return Ok(Response::builder() .status(StatusCode::INTERNAL_SERVER_ERROR) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("An internal server error occurred handling x_expires_after header - {e}"))) .expect("Unable to create Internal Server Error for invalid response header")) } @@ -3755,6 +3971,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3800,6 +4020,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3838,11 +4062,13 @@ where Ok(param_username) => param_username, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter username: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["username"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -3874,6 +4100,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -3912,11 +4142,13 @@ where Ok(param_username) => param_username, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter username: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["username"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -3972,6 +4204,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -4010,11 +4246,13 @@ where Ok(param_username) => param_username, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't parse path parameter username: {e}"))) .expect("Unable to create Bad Request response for invalid path parameter")), }, Err(_) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Couldn't percent-decode path parameter as UTF-8: {}", &path_params["username"]))) .expect("Unable to create Bad Request response for invalid percent decode")) }; @@ -4035,6 +4273,7 @@ where Ok(param_body) => param_body, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to schema")), } @@ -4046,6 +4285,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -4086,6 +4326,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -4094,6 +4338,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } diff --git a/samples/server/petstore/rust-server/output/ping-bearer-auth/src/server/mod.rs b/samples/server/petstore/rust-server/output/ping-bearer-auth/src/server/mod.rs index 701c40d5f073..4ac45199b594 100644 --- a/samples/server/petstore/rust-server/output/ping-bearer-auth/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/ping-bearer-auth/src/server/mod.rs @@ -257,6 +257,7 @@ where Some(ref authorization) => authorization, None => return Ok(Response::builder() .status(StatusCode::FORBIDDEN) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_str("Unauthenticated")) .expect("Unable to create Authentication Forbidden response")), }; @@ -283,6 +284,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } diff --git a/samples/server/petstore/rust-server/output/rust-server-test/src/server/mod.rs b/samples/server/petstore/rust-server/output/rust-server-test/src/server/mod.rs index 4358057a44aa..a5ebf44bcd84 100644 --- a/samples/server/petstore/rust-server/output/rust-server-test/src/server/mod.rs +++ b/samples/server/petstore/rust-server/output/rust-server-test/src/server/mod.rs @@ -349,6 +349,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -393,6 +397,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -432,6 +440,7 @@ where Ok(param_nested_response) => param_nested_response, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter nested_response - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter nested_response due to schema")), } @@ -443,6 +452,7 @@ where Some(param_nested_response) => param_nested_response, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter nested_response".to_string())) .expect("Unable to create Bad Request response for missing body parameter nested_response")), }; @@ -477,6 +487,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -485,6 +499,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -534,6 +549,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -584,6 +603,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -618,6 +641,7 @@ where Ok(param_body) => Some(param_body), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter body - not valid UTF-8: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter body due to UTF-8")), } @@ -628,6 +652,7 @@ where Some(param_body) => param_body, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter body".to_string())) .expect("Unable to create Bad Request response for missing body parameter body")), }; @@ -660,6 +685,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -668,6 +697,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -700,6 +730,7 @@ where Ok(param_value) => Some(param_value), Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter value - not valid UTF-8: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter value due to UTF-8")), } @@ -710,6 +741,7 @@ where Some(param_value) => param_value, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter value".to_string())) .expect("Unable to create Bad Request response for missing body parameter value")), }; @@ -736,6 +768,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -744,6 +780,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), } @@ -793,6 +830,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -832,6 +873,7 @@ where Ok(param_value) => param_value, Err(e) => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new(format!("Couldn't parse body parameter value - doesn't match schema: {e}"))) .expect("Unable to create Bad Request response for invalid body parameter value due to schema")), } @@ -843,6 +885,7 @@ where Some(param_value) => param_value, None => return Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(BoxBody::new("Missing required body parameter value".to_string())) .expect("Unable to create Bad Request response for missing body parameter value")), }; @@ -875,6 +918,10 @@ where // Application code returned an error. This should not happen, as the implementation should // return a valid response. *response.status_mut() = StatusCode::INTERNAL_SERVER_ERROR; + response.headers_mut().insert( + CONTENT_TYPE, + HeaderValue::from_static("text/plain"), + ); *response.body_mut() = body_from_str("An internal error occurred"); }, } @@ -883,6 +930,7 @@ where }, Err(e) => Ok(Response::builder() .status(StatusCode::BAD_REQUEST) + .header(CONTENT_TYPE, mime::TEXT_PLAIN.as_ref()) .body(body_from_string(format!("Unable to read body: {}", e.into()))) .expect("Unable to create Bad Request response due to unable to read body")), }