diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java index efacc311118f..15e7b2a3a158 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -2802,18 +2802,31 @@ protected void updateModelForComposedSchema(CodegenModel m, Schema schema, Map visited = new HashSet<>(); + if (ModelUtils.hasOneOf(refSchema) && refSchema.getOneOf() != null) { + for (Object variant : refSchema.getOneOf()) { + visited.add((Schema) variant); + } + } if (allParents.contains(ref) && supportsMultipleInheritance) { // multiple inheritance - addProperties(allProperties, allRequired, refSchema, new HashSet<>()); + addProperties(allProperties, allRequired, refSchema, visited); } else if (parentName != null && parentName.equals(ref) && supportsInheritance) { // single inheritance - addProperties(allProperties, allRequired, refSchema, new HashSet<>()); + addProperties(allProperties, allRequired, refSchema, visited); } else { // composition Map newProperties = new LinkedHashMap<>(); - addProperties(newProperties, required, refSchema, new HashSet<>()); + addProperties(newProperties, required, refSchema, new HashSet<>(visited)); mergeProperties(properties, newProperties); - addProperties(allProperties, allRequired, refSchema, new HashSet<>()); + addProperties(allProperties, allRequired, refSchema, visited); } } diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java index ec07161ff199..ef90190385ef 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractCSharpCodegen.java @@ -707,6 +707,13 @@ private boolean modelIsMutable(CodegenModel model, Set processed) { processed = new HashSet(); } boolean isMutable = model.allVars.stream().anyMatch(v -> !v.isReadOnly); + // oneOf/anyOf union wrappers expose a constructor per variant; the variants + // are not tracked in allVars, so fall back to the composed schema lists. + if (!isMutable && model.getComposedSchemas() != null) { + List oneOf = model.getComposedSchemas().getOneOf(); + List anyOf = model.getComposedSchemas().getAnyOf(); + isMutable = (oneOf != null && !oneOf.isEmpty()) || (anyOf != null && !anyOf.isEmpty()); + } if (!isMutable && !processed.contains(model.classname) && model.getDiscriminator() != null && model.getDiscriminator().getMappedModels() != null) { processed.add(model.classname); isMutable = modelIsMutable(model, processed); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java index 84d8cf484f73..62a961d51b87 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/utils/ModelUtils.java @@ -1589,6 +1589,11 @@ public static String getParentName(Schema composedSchema, Map al } else if (hasOrInheritsDiscriminator(s, allSchemas, new ArrayList())) { // discriminator.propertyName is used or x-parent is used parentNameCandidates.add(parentName); + } else if (hasOneOf(s)) { + // a $ref to a oneOf schema is treated as a parent even without + // a discriminator, to avoid flattening union type variants into + // an impossible conjunction of all variant properties + parentNameCandidates.add(parentName); } else { // not a parent since discriminator.propertyName or x-parent is not set hasAmbiguousParents = true; @@ -1658,6 +1663,13 @@ private static List getAllParentsName( if (includeAncestors && isComposedSchema(s)) { names.addAll(getAllParentsName(s, allSchemas, true, seenNames)); } + } else if (hasOneOf(s)) { + // a $ref to a oneOf schema is treated as a parent even without + // a discriminator + names.add(parentName); + if (includeAncestors && isComposedSchema(s)) { + names.addAll(getAllParentsName(s, allSchemas, true, seenNames)); + } } else { // not a parent since discriminator.propertyName is not set } diff --git a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java index 1f0e4a8f8fc6..1b2a86cca3b0 100644 --- a/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java +++ b/modules/openapi-generator/src/test/java/org/openapitools/codegen/DefaultCodegenTest.java @@ -1171,6 +1171,79 @@ public void testAllOfRequired() { assertEquals(getRequiredVars(childModel), Collections.singletonList("name")); } + @Test + public void testAllOfWithOneOfRefNoDiscriminator() { + final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/allOf_oneOf_noDiscriminator.yaml"); + DefaultCodegen codegen = new DefaultCodegen(); + codegen.supportsInheritance = true; + codegen.setOpenAPI(openAPI); + + // ParentC uses allOf with a $ref to Child (a oneOf without discriminator). + // Child should be recognized as a parent, not flattened. + Schema parentCSchema = openAPI.getComponents().getSchemas().get("ParentC"); + CodegenModel parentCModel = codegen.fromModel("ParentC", parentCSchema); + assertEquals("Child", parentCModel.parentSchema); + assertEquals("Child", parentCModel.parent); + + // Only the own property "type" should be in vars, not the oneOf variant properties + List varNames = parentCModel.vars.stream().map(v -> v.name).collect(Collectors.toList()); + assertTrue(varNames.contains("type"), "vars should contain 'type'"); + assertFalse(varNames.contains("xOnlyField"), "vars should not contain variant-specific 'xOnlyField'"); + assertFalse(varNames.contains("yOnlyField"), "vars should not contain variant-specific 'yOnlyField'"); + assertFalse(varNames.contains("zOnlyField"), "vars should not contain variant-specific 'zOnlyField'"); + + // allVars should also not contain flattened variant properties + List allVarNames = parentCModel.allVars.stream().map(v -> v.name).collect(Collectors.toList()); + assertFalse(allVarNames.contains("xOnlyField"), "allVars should not contain variant-specific 'xOnlyField'"); + assertFalse(allVarNames.contains("yOnlyField"), "allVars should not contain variant-specific 'yOnlyField'"); + assertFalse(allVarNames.contains("zOnlyField"), "allVars should not contain variant-specific 'zOnlyField'"); + } + + @Test + public void testAllOfWithOneOfRefNoDiscriminatorNoInheritance() { + final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/allOf_oneOf_noDiscriminator.yaml"); + DefaultCodegen codegen = new DefaultCodegen(); + codegen.supportsInheritance = false; + codegen.setOpenAPI(openAPI); + + // Even without supportsInheritance, variant properties should not be flattened + Schema parentCSchema = openAPI.getComponents().getSchemas().get("ParentC"); + CodegenModel parentCModel = codegen.fromModel("ParentC", parentCSchema); + + List varNames = parentCModel.vars.stream().map(v -> v.name).collect(Collectors.toList()); + assertFalse(varNames.contains("xOnlyField"), "vars should not contain variant-specific 'xOnlyField'"); + assertFalse(varNames.contains("yOnlyField"), "vars should not contain variant-specific 'yOnlyField'"); + assertFalse(varNames.contains("zOnlyField"), "vars should not contain variant-specific 'zOnlyField'"); + } + + @Test + public void testAllOfWithOneOfRefPreservesWrapperProperties() { + final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/allOf_oneOf_noDiscriminator.yaml"); + DefaultCodegen codegen = new DefaultCodegen(); + codegen.supportsInheritance = true; + codegen.setOpenAPI(openAPI); + + // ChildWithSharedFields is a oneOf wrapper that also declares its own + // properties (wrapperOptionalField, wrapperRequiredField). When ParentWithSharedFields + // inherits from it via allOf, those wrapper-level properties must still flow + // through to allProperties/allRequired — only the variant-specific properties + // should be suppressed. + Schema parentSchema = openAPI.getComponents().getSchemas().get("ParentWithSharedFields"); + CodegenModel parentModel = codegen.fromModel("ParentWithSharedFields", parentSchema); + + List allVarNames = parentModel.allVars.stream().map(v -> v.name).collect(Collectors.toList()); + assertTrue(allVarNames.contains("wrapperOptionalField"), "allVars should contain wrapper-level 'wrapperOptionalField'"); + assertTrue(allVarNames.contains("wrapperRequiredField"), "allVars should contain wrapper-level 'wrapperRequiredField'"); + assertTrue(allVarNames.contains("extraField"), "allVars should contain inline allOf 'extraField'"); + assertFalse(allVarNames.contains("xOnlyField"), "allVars should not contain variant-specific 'xOnlyField'"); + assertFalse(allVarNames.contains("yOnlyField"), "allVars should not contain variant-specific 'yOnlyField'"); + assertFalse(allVarNames.contains("zOnlyField"), "allVars should not contain variant-specific 'zOnlyField'"); + + List requiredVarNames = parentModel.requiredVars.stream().map(v -> v.name).collect(Collectors.toList()); + assertTrue(requiredVarNames.contains("wrapperRequiredField"), "requiredVars should include wrapper-level required 'wrapperRequiredField'"); + assertTrue(requiredVarNames.contains("extraField"), "requiredVars should include inline allOf required 'extraField'"); + } + @Test public void testAllOfSingleAndDoubleRefWithOwnPropsNoDiscriminator() { final OpenAPI openAPI = TestUtils.parseFlattenSpec("src/test/resources/3_0/allOf_composition.yaml"); diff --git a/modules/openapi-generator/src/test/resources/3_0/allOf_oneOf_noDiscriminator.yaml b/modules/openapi-generator/src/test/resources/3_0/allOf_oneOf_noDiscriminator.yaml new file mode 100644 index 000000000000..19fff58d1463 --- /dev/null +++ b/modules/openapi-generator/src/test/resources/3_0/allOf_oneOf_noDiscriminator.yaml @@ -0,0 +1,94 @@ +openapi: 3.0.2 +info: + title: allOf with oneOf (no discriminator) test + version: 1.0.0 +paths: + /parent: + get: + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ParentC' + /parent-shared: + get: + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ParentWithSharedFields' +components: + schemas: + ParentC: + allOf: + - type: object + required: [type] + properties: + type: + type: string + - $ref: "#/components/schemas/Child" + + Child: + oneOf: + - $ref: "#/components/schemas/ChildX" + - $ref: "#/components/schemas/ChildY" + - $ref: "#/components/schemas/ChildZ" + + ParentWithSharedFields: + allOf: + - $ref: "#/components/schemas/ChildWithSharedFields" + - type: object + required: [extraField] + properties: + extraField: + type: string + + ChildWithSharedFields: + type: object + required: [wrapperRequiredField] + properties: + wrapperOptionalField: + type: string + wrapperRequiredField: + type: string + oneOf: + - $ref: "#/components/schemas/ChildX" + - $ref: "#/components/schemas/ChildY" + - $ref: "#/components/schemas/ChildZ" + + ChildX: + type: object + required: [kind, sharedField, xOnlyField] + properties: + kind: + type: string + sharedField: + type: string + xOnlyField: + type: string + + ChildY: + type: object + required: [kind, sharedField, yOnlyField] + properties: + kind: + type: string + sharedField: + type: string + yOnlyField: + type: string + + ChildZ: + type: object + required: [kind, sharedField, zOnlyField] + properties: + kind: + type: string + sharedField: + type: string + zOnlyField: + type: integer diff --git a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsSizeParameter.cs b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsSizeParameter.cs index 261018b943b4..e0af523ded1f 100644 --- a/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsSizeParameter.cs +++ b/samples/client/petstore/csharp/generichost/latest/InlineEnumAnyOf/src/Org.OpenAPITools/Model/IconsSizeParameter.cs @@ -35,7 +35,7 @@ public partial class IconsSizeParameter : IValidatableObject /// /// /// - internal IconsSizeParameter(Option iconsSizeParameterAnyOf, Option @int) + public IconsSizeParameter(Option iconsSizeParameterAnyOf, Option @int) { IconsSizeParameterAnyOfOption = iconsSizeParameterAnyOf; IntOption = @int; diff --git a/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/OneOfArrayRequest.cs b/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/OneOfArrayRequest.cs index c80ab3303934..cd27c9a35f7f 100644 --- a/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/OneOfArrayRequest.cs +++ b/samples/client/petstore/csharp/generichost/latest/OneOfList/src/Org.OpenAPITools/Model/OneOfArrayRequest.cs @@ -34,7 +34,7 @@ public partial class OneOfArrayRequest : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfArrayRequest(List list) + public OneOfArrayRequest(List list) { List = list; OnCreated(); @@ -44,7 +44,7 @@ internal OneOfArrayRequest(List list) /// Initializes a new instance of the class. /// /// - internal OneOfArrayRequest(List list1) + public OneOfArrayRequest(List list1) { List1 = list1; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 218f63d9bc7c..1f68d82f452f 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 @@ -117,8 +117,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -167,21 +165,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/OneOfString.cs index dad98d765154..d31d5b288b6c 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/OneOfString.cs @@ -34,7 +34,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index c0c32b963285..e9e8211515ac 100644 --- a/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/latest/UseDateTimeOffset/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -34,7 +34,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -44,7 +44,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -54,7 +54,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -64,7 +64,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 ed706f0092b8..1e7a77f6c7a7 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 @@ -117,8 +117,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -167,21 +165,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 3384090adea8..bf2aa5168910 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 @@ -117,8 +117,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -167,21 +165,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 9a93cb734e9c..671ed3726624 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 @@ -123,8 +123,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..ccb6232c35f3 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,7 +33,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..772fd6e672cd 100644 --- a/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net10/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,7 +33,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -43,7 +43,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -53,7 +53,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -63,7 +63,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c651ac7d2454..6629f98b0fb6 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 @@ -123,8 +123,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 1f0b22030070..9b7d7d1dcae3 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 @@ -123,8 +123,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 a06afa2a9be6..4e65f8d4824c 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 @@ -125,8 +125,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -175,21 +173,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs index 5471f08f5194..c0cf74e5e56a 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs @@ -35,7 +35,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 3c1b978da7f0..7707d2bd2376 100644 --- a/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net10/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -35,7 +35,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -45,7 +45,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -55,7 +55,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -65,7 +65,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c608b7288d95..2fa7e3335bb3 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 @@ -125,8 +125,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -175,21 +173,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 3fc9f2735096..193b1e3bdc3e 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 @@ -125,8 +125,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -175,21 +173,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 9a93cb734e9c..671ed3726624 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 @@ -123,8 +123,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..ccb6232c35f3 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,7 +33,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..772fd6e672cd 100644 --- a/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net10/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,7 +33,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -43,7 +43,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -53,7 +53,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -63,7 +63,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c651ac7d2454..6629f98b0fb6 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 @@ -123,8 +123,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 1f0b22030070..9b7d7d1dcae3 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 @@ -123,8 +123,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 25248c75ffaf..991d375e53c9 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 @@ -126,8 +126,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -176,21 +174,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs index 269f97ae4fd3..b5fe313f96f5 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs @@ -36,7 +36,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 9e1aaafe221e..6e0bc79910b6 100644 --- a/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net10/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -36,7 +36,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -46,7 +46,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -56,7 +56,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -66,7 +66,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 71620d915bbb..934003e48aeb 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 @@ -126,8 +126,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -176,21 +174,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 37b5fddee5e3..65255c88ea19 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 @@ -126,8 +126,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -176,21 +174,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 9a93cb734e9c..671ed3726624 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 @@ -123,8 +123,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..ccb6232c35f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,7 +33,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..772fd6e672cd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,7 +33,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -43,7 +43,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -53,7 +53,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -63,7 +63,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c651ac7d2454..6629f98b0fb6 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 @@ -123,8 +123,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 1f0b22030070..9b7d7d1dcae3 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 @@ -123,8 +123,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 9a93cb734e9c..671ed3726624 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 @@ -123,8 +123,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..ccb6232c35f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,7 +33,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..772fd6e672cd 100644 --- a/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.7/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,7 +33,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -43,7 +43,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -53,7 +53,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -63,7 +63,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c651ac7d2454..6629f98b0fb6 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 @@ -123,8 +123,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 1f0b22030070..9b7d7d1dcae3 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 @@ -123,8 +123,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 9a93cb734e9c..671ed3726624 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 @@ -123,8 +123,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..ccb6232c35f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,7 +33,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..772fd6e672cd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,7 +33,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -43,7 +43,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -53,7 +53,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -63,7 +63,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c651ac7d2454..6629f98b0fb6 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 @@ -123,8 +123,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 1f0b22030070..9b7d7d1dcae3 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 @@ -123,8 +123,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 9a93cb734e9c..671ed3726624 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 @@ -123,8 +123,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..ccb6232c35f3 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,7 +33,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..772fd6e672cd 100644 --- a/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net4.8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,7 +33,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -43,7 +43,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -53,7 +53,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -63,7 +63,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c651ac7d2454..6629f98b0fb6 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 @@ -123,8 +123,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 1f0b22030070..9b7d7d1dcae3 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 @@ -123,8 +123,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 9a93cb734e9c..671ed3726624 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 @@ -123,8 +123,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..ccb6232c35f3 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,7 +33,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..772fd6e672cd 100644 --- a/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,7 +33,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -43,7 +43,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -53,7 +53,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -63,7 +63,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c651ac7d2454..6629f98b0fb6 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 @@ -123,8 +123,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 1f0b22030070..9b7d7d1dcae3 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 @@ -123,8 +123,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 a06afa2a9be6..4e65f8d4824c 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 @@ -125,8 +125,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -175,21 +173,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs index 5471f08f5194..c0cf74e5e56a 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs @@ -35,7 +35,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 3c1b978da7f0..7707d2bd2376 100644 --- a/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -35,7 +35,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -45,7 +45,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -55,7 +55,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -65,7 +65,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c608b7288d95..2fa7e3335bb3 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 @@ -125,8 +125,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -175,21 +173,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 3fc9f2735096..193b1e3bdc3e 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 @@ -125,8 +125,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -175,21 +173,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 9a93cb734e9c..671ed3726624 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 @@ -123,8 +123,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..ccb6232c35f3 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,7 +33,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..772fd6e672cd 100644 --- a/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,7 +33,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -43,7 +43,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -53,7 +53,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -63,7 +63,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c651ac7d2454..6629f98b0fb6 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 @@ -123,8 +123,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 1f0b22030070..9b7d7d1dcae3 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 @@ -123,8 +123,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 25248c75ffaf..991d375e53c9 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 @@ -126,8 +126,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -176,21 +174,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs index 269f97ae4fd3..b5fe313f96f5 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs @@ -36,7 +36,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 9e1aaafe221e..6e0bc79910b6 100644 --- a/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net8/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -36,7 +36,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -46,7 +46,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -56,7 +56,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -66,7 +66,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 71620d915bbb..934003e48aeb 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 @@ -126,8 +126,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -176,21 +174,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 37b5fddee5e3..65255c88ea19 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 @@ -126,8 +126,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -176,21 +174,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 9a93cb734e9c..671ed3726624 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 @@ -123,8 +123,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..ccb6232c35f3 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,7 +33,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..772fd6e672cd 100644 --- a/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net9/FormModels/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,7 +33,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -43,7 +43,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -53,7 +53,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -63,7 +63,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c651ac7d2454..6629f98b0fb6 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 @@ -123,8 +123,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 1f0b22030070..9b7d7d1dcae3 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 @@ -123,8 +123,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 a06afa2a9be6..4e65f8d4824c 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 @@ -125,8 +125,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -175,21 +173,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs index 5471f08f5194..c0cf74e5e56a 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/OneOfString.cs @@ -35,7 +35,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 3c1b978da7f0..7707d2bd2376 100644 --- a/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net9/NullReferenceTypes/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -35,7 +35,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -45,7 +45,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -55,7 +55,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -65,7 +65,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c608b7288d95..2fa7e3335bb3 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 @@ -125,8 +125,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -175,21 +173,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 3fc9f2735096..193b1e3bdc3e 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 @@ -125,8 +125,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -175,21 +173,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 9a93cb734e9c..671ed3726624 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 @@ -123,8 +123,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..ccb6232c35f3 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,7 +33,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..772fd6e672cd 100644 --- a/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net9/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,7 +33,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -43,7 +43,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -53,7 +53,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -63,7 +63,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c651ac7d2454..6629f98b0fb6 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 @@ -123,8 +123,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 1f0b22030070..9b7d7d1dcae3 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 @@ -123,8 +123,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 25248c75ffaf..991d375e53c9 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 @@ -126,8 +126,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -176,21 +174,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs index 269f97ae4fd3..b5fe313f96f5 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/OneOfString.cs @@ -36,7 +36,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index 9e1aaafe221e..6e0bc79910b6 100644 --- a/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/net9/SourceGeneration/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -36,7 +36,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -46,7 +46,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -56,7 +56,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -66,7 +66,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 71620d915bbb..934003e48aeb 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 @@ -126,8 +126,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -176,21 +174,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 37b5fddee5e3..65255c88ea19 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 @@ -126,8 +126,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral? quadrilateral = null; Triangle? triangle = null; @@ -176,21 +174,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()!); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/NullableShape.md b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/NullableShape.md index 2720167ccaaa..0caa1aa5b9d8 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/NullableShape.md +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/NullableShape.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Shape.md b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Shape.md index ae75c5925401..cd9e7e1499d2 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Shape.md +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/Shape.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/ShapeOrNull.md b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/ShapeOrNull.md index 7fcd31a3a5e1..1bd04583c9a0 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/ShapeOrNull.md +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/docs/models/ShapeOrNull.md @@ -5,7 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | [[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md) 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 9a93cb734e9c..671ed3726624 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 @@ -123,8 +123,6 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override NullableShape Read(ref Utf8JsonReader utf8JsonReader, Type typeT switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class NullableShape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class NullableShape."); - if (quadrilateral != null) return new NullableShape(quadrilateral); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs index c89963f55a36..ccb6232c35f3 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/OneOfString.cs @@ -33,7 +33,7 @@ public partial class OneOfString : IValidatableObject /// Initializes a new instance of the class. /// /// - internal OneOfString(string @string) + public OneOfString(string @string) { String = @string; OnCreated(); diff --git a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs index ddea47edf40c..772fd6e672cd 100644 --- a/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs +++ b/samples/client/petstore/csharp/generichost/standard2.0/Petstore/src/Org.OpenAPITools/Model/PolymorphicProperty.cs @@ -33,7 +33,7 @@ public partial class PolymorphicProperty : IValidatableObject /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(bool @bool) + public PolymorphicProperty(bool @bool) { Bool = @bool; OnCreated(); @@ -43,7 +43,7 @@ internal PolymorphicProperty(bool @bool) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(string @string) + public PolymorphicProperty(string @string) { String = @string; OnCreated(); @@ -53,7 +53,7 @@ internal PolymorphicProperty(string @string) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(Object @object) + public PolymorphicProperty(Object @object) { Object = @object; OnCreated(); @@ -63,7 +63,7 @@ internal PolymorphicProperty(Object @object) /// Initializes a new instance of the class. /// /// - internal PolymorphicProperty(List list) + public PolymorphicProperty(List list) { List = list; OnCreated(); 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 c651ac7d2454..6629f98b0fb6 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 @@ -123,8 +123,6 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override Shape Read(ref Utf8JsonReader utf8JsonReader, Type typeToConvert switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class Shape.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class Shape."); - if (quadrilateral != null) return new Shape(quadrilateral); 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 1f0b22030070..9b7d7d1dcae3 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 @@ -123,8 +123,6 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC JsonTokenType startingTokenType = utf8JsonReader.TokenType; - Option shapeType = default; - Quadrilateral quadrilateral = null; Triangle triangle = null; @@ -173,21 +171,12 @@ public override ShapeOrNull Read(ref Utf8JsonReader utf8JsonReader, Type typeToC switch (localVarJsonPropertyName) { - case "shapeType": - shapeType = new Option(utf8JsonReader.GetString()); - break; default: break; } } } - if (!shapeType.IsSet) - throw new ArgumentException("Property is required for class ShapeOrNull.", nameof(shapeType)); - - if (shapeType.IsSet && shapeType.Value == null) - throw new ArgumentNullException(nameof(shapeType), "Property is not nullable for class ShapeOrNull."); - if (quadrilateral != null) return new ShapeOrNull(quadrilateral); diff --git a/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/NullableShape.md b/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/NullableShape.md +++ b/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/Shape.md b/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/Shape.md +++ b/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/ShapeOrNull.md b/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/httpclient/net10/Petstore/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/NullableShape.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/NullableShape.md +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Shape.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Shape.md +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ShapeOrNull.md b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/httpclient/net9/Petstore/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NullableShape.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NullableShape.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Shape.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Shape.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ShapeOrNull.md b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/httpclient/standard2.0/Petstore/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/NullableShape.md b/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/NullableShape.md +++ b/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/Shape.md b/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/Shape.md +++ b/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/ShapeOrNull.md b/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/restsharp/net10/Petstore/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NullableShape.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NullableShape.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Shape.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Shape.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ShapeOrNull.md b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/restsharp/net4.7/Petstore/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NullableShape.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NullableShape.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Shape.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Shape.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ShapeOrNull.md b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/restsharp/net4.8/Petstore/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/NullableShape.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/NullableShape.md +++ b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Shape.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Shape.md +++ b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ShapeOrNull.md b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/restsharp/net8/EnumMappings/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/NullableShape.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/NullableShape.md +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Shape.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Shape.md +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ShapeOrNull.md b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/restsharp/net8/Petstore/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/NullableShape.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/NullableShape.md +++ b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Shape.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Shape.md +++ b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ShapeOrNull.md b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/restsharp/net9/EnumMappings/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NullableShape.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NullableShape.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Shape.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Shape.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ShapeOrNull.md b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/ConditionalSerialization/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NullableShape.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NullableShape.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Shape.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Shape.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ShapeOrNull.md b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/restsharp/standard2.0/Petstore/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/NullableShape.md b/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/NullableShape.md +++ b/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/Shape.md b/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/Shape.md +++ b/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/ShapeOrNull.md b/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/unityWebRequest/net10/Petstore/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/NullableShape.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/NullableShape.md +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Shape.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Shape.md +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ShapeOrNull.md b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/unityWebRequest/net9/Petstore/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NullableShape.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NullableShape.md index 2656339e9d36..0aa093e5c45a 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NullableShape.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/NullableShape.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Shape.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Shape.md index ced6864c4438..66bd5dbcb637 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Shape.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/Shape.md @@ -4,9 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ShapeOrNull.md b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ShapeOrNull.md index ba986aa32e5c..c020d45530ba 100644 --- a/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/csharp/unityWebRequest/standard2.0/Petstore/docs/ShapeOrNull.md @@ -5,9 +5,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **string** | | -**TriangleType** | **string** | | -**QuadrilateralType** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java index f37075699d82..2265fa6d4a3a 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/NullableShape.java @@ -23,14 +23,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java index dedc0fc269df..f8d7fdeac5ca 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/Shape.java @@ -23,14 +23,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java index 0f92751d55bd..b5831316b528 100644 --- a/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java +++ b/samples/client/petstore/java/jersey3/src/main/java/org/openapitools/client/model/ShapeOrNull.java @@ -23,14 +23,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableShape.java index bb28cc325ad2..f301bd9ace6d 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableShape.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/NullableShape.java @@ -20,14 +20,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Shape.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Shape.java index d3828d6e2559..7001ed8b0432 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Shape.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/Shape.java @@ -20,14 +20,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeOrNull.java index ff840f4652ba..0139b896066c 100644 --- a/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeOrNull.java +++ b/samples/client/petstore/java/native-async/src/main/java/org/openapitools/client/model/ShapeOrNull.java @@ -20,14 +20,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/NullableShape.java index 4b6c9199ca2f..736cd1b1d916 100644 --- a/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/NullableShape.java +++ b/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/NullableShape.java @@ -22,13 +22,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/Shape.java b/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/Shape.java index 1c237437d095..de6acf19a501 100644 --- a/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/Shape.java +++ b/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/Shape.java @@ -22,13 +22,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/ShapeOrNull.java index f0711ec67788..2aece8ad8813 100644 --- a/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/ShapeOrNull.java +++ b/samples/client/petstore/java/native-jackson3/src/main/java/org/openapitools/client/model/ShapeOrNull.java @@ -22,13 +22,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableShape.java index 5b3437523c75..cdcf0ebc1fa9 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableShape.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/NullableShape.java @@ -22,14 +22,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Shape.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Shape.java index 92485be6ef39..1198c4939417 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Shape.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/Shape.java @@ -22,14 +22,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeOrNull.java index 89b00bc59124..005618368520 100644 --- a/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeOrNull.java +++ b/samples/client/petstore/java/native/src/main/java/org/openapitools/client/model/ShapeOrNull.java @@ -22,14 +22,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/client/petstore/java/okhttp-gson/docs/NullableShape.md b/samples/client/petstore/java/okhttp-gson/docs/NullableShape.md index 9d40680fd2c2..a76dfc1d46e2 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/NullableShape.md +++ b/samples/client/petstore/java/okhttp-gson/docs/NullableShape.md @@ -8,9 +8,6 @@ The value may be a shape or the 'null' value. The 'nullable' attribute was intro | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**shapeType** | **String** | | | -|**triangleType** | **String** | | | -|**quadrilateralType** | **String** | | | diff --git a/samples/client/petstore/java/okhttp-gson/docs/Shape.md b/samples/client/petstore/java/okhttp-gson/docs/Shape.md index 51549d7b67f9..64301c610cd3 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/Shape.md +++ b/samples/client/petstore/java/okhttp-gson/docs/Shape.md @@ -7,9 +7,6 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**shapeType** | **String** | | | -|**triangleType** | **String** | | | -|**quadrilateralType** | **String** | | | diff --git a/samples/client/petstore/java/okhttp-gson/docs/ShapeOrNull.md b/samples/client/petstore/java/okhttp-gson/docs/ShapeOrNull.md index c4ae8f1b6720..3b91cae72c95 100644 --- a/samples/client/petstore/java/okhttp-gson/docs/ShapeOrNull.md +++ b/samples/client/petstore/java/okhttp-gson/docs/ShapeOrNull.md @@ -8,9 +8,6 @@ The value may be a shape or the 'null' value. This is introduced in OAS schema > | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**shapeType** | **String** | | | -|**triangleType** | **String** | | | -|**quadrilateralType** | **String** | | | diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableShape.java index b487fd231052..ecd9565bdce5 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableShape.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/NullableShape.java @@ -14,13 +14,6 @@ package org.openapitools.client.model; import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Shape.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Shape.java index 62cc65090d1d..834a298209f8 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Shape.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/Shape.java @@ -14,13 +14,6 @@ package org.openapitools.client.model; import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; diff --git a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeOrNull.java index 30a15b50f64c..594833969257 100644 --- a/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeOrNull.java +++ b/samples/client/petstore/java/okhttp-gson/src/main/java/org/openapitools/client/model/ShapeOrNull.java @@ -14,13 +14,6 @@ package org.openapitools.client.model; import java.util.Objects; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import java.io.IOException; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; diff --git a/samples/client/petstore/powershell/docs/NullableShape.md b/samples/client/petstore/powershell/docs/NullableShape.md index 127110ad1c0d..bbc9232aa860 100644 --- a/samples/client/petstore/powershell/docs/NullableShape.md +++ b/samples/client/petstore/powershell/docs/NullableShape.md @@ -3,17 +3,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **String** | | -**TriangleType** | **String** | | -**QuadrilateralType** | **String** | | ## Examples - Prepare the resource ```powershell -$NullableShape = Initialize-PSPetstoreNullableShape -ShapeType null ` - -TriangleType null ` - -QuadrilateralType null +$NullableShape = Initialize-PSPetstoreNullableShape ``` - Convert the resource to JSON diff --git a/samples/client/petstore/powershell/docs/Shape.md b/samples/client/petstore/powershell/docs/Shape.md index 42b008286a5d..0dc824933cf8 100644 --- a/samples/client/petstore/powershell/docs/Shape.md +++ b/samples/client/petstore/powershell/docs/Shape.md @@ -3,17 +3,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **String** | | -**TriangleType** | **String** | | -**QuadrilateralType** | **String** | | ## Examples - Prepare the resource ```powershell -$Shape = Initialize-PSPetstoreShape -ShapeType null ` - -TriangleType null ` - -QuadrilateralType null +$Shape = Initialize-PSPetstoreShape ``` - Convert the resource to JSON diff --git a/samples/client/petstore/powershell/docs/ShapeOrNull.md b/samples/client/petstore/powershell/docs/ShapeOrNull.md index e237db3c1155..6650940e8547 100644 --- a/samples/client/petstore/powershell/docs/ShapeOrNull.md +++ b/samples/client/petstore/powershell/docs/ShapeOrNull.md @@ -3,17 +3,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ShapeType** | **String** | | -**TriangleType** | **String** | | -**QuadrilateralType** | **String** | | ## Examples - Prepare the resource ```powershell -$ShapeOrNull = Initialize-PSPetstoreShapeOrNull -ShapeType null ` - -TriangleType null ` - -QuadrilateralType null +$ShapeOrNull = Initialize-PSPetstoreShapeOrNull ``` - Convert the resource to JSON diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/docs/NullableShape.md b/samples/client/petstore/typescript-axios/builds/test-petstore/docs/NullableShape.md index 80f70ecefa53..5625c99e0165 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/docs/NullableShape.md +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/docs/NullableShape.md @@ -6,9 +6,6 @@ The value may be a shape or the \'null\' value. The \'nullable\' attribute was i Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**shapeType** | **string** | | [default to undefined] -**triangleType** | **string** | | [default to undefined] -**quadrilateralType** | **string** | | [default to undefined] ## Example @@ -16,9 +13,6 @@ Name | Type | Description | Notes import { NullableShape } from './api'; const instance: NullableShape = { - shapeType, - triangleType, - quadrilateralType, }; ``` diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/docs/Shape.md b/samples/client/petstore/typescript-axios/builds/test-petstore/docs/Shape.md index e135140f28cd..4a2d94226efb 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/docs/Shape.md +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/docs/Shape.md @@ -5,9 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**shapeType** | **string** | | [default to undefined] -**triangleType** | **string** | | [default to undefined] -**quadrilateralType** | **string** | | [default to undefined] ## Example @@ -15,9 +12,6 @@ Name | Type | Description | Notes import { Shape } from './api'; const instance: Shape = { - shapeType, - triangleType, - quadrilateralType, }; ``` diff --git a/samples/client/petstore/typescript-axios/builds/test-petstore/docs/ShapeOrNull.md b/samples/client/petstore/typescript-axios/builds/test-petstore/docs/ShapeOrNull.md index 79f281d4a005..580d45a11df0 100644 --- a/samples/client/petstore/typescript-axios/builds/test-petstore/docs/ShapeOrNull.md +++ b/samples/client/petstore/typescript-axios/builds/test-petstore/docs/ShapeOrNull.md @@ -6,9 +6,6 @@ The value may be a shape or the \'null\' value. This is introduced in OAS schema Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**shapeType** | **string** | | [default to undefined] -**triangleType** | **string** | | [default to undefined] -**quadrilateralType** | **string** | | [default to undefined] ## Example @@ -16,9 +13,6 @@ Name | Type | Description | Notes import { ShapeOrNull } from './api'; const instance: ShapeOrNull = { - shapeType, - triangleType, - quadrilateralType, }; ``` diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableShape.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableShape.java index b0874184bdbb..d18c12b35aa3 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableShape.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/NullableShape.java @@ -23,14 +23,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Shape.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Shape.java index 8c8904a46016..755b49411a5c 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Shape.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/Shape.java @@ -23,14 +23,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder; diff --git a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeOrNull.java b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeOrNull.java index dec0a11fb61c..46d641d33517 100644 --- a/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeOrNull.java +++ b/samples/openapi3/client/petstore/java/jersey2-java8/src/main/java/org/openapitools/client/model/ShapeOrNull.java @@ -23,14 +23,8 @@ import java.util.Map; import java.util.HashMap; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonSubTypes; import com.fasterxml.jackson.annotation.JsonTypeInfo; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import java.util.Arrays; import org.openapitools.client.model.Quadrilateral; import org.openapitools.client.model.Triangle; import com.fasterxml.jackson.annotation.JsonPropertyOrder;